# Answer the following questions # (review basic concepts) # 1. What would be the value of the variable nums after # the execution of the following code? nums = [1, 2, 3, 4] nums[3] = 10 print(nums) # 2. What is the value of val in the following expression # if x = 4, y = 3, and z = 6 x = 4 y = 3 z = 6 val = x < y or z > x print(val) # 3. True/False: If a whole paragraph is included in a single string, # the split() method can be used to obtain a list of the words # included in the paragraph # 4. When executed, what is output by the following code fragment? def func1(x, y): x[0] = 2 y = "2" x = [1] y = "1" func1(x, y) print(x, y) # 5. What is the output of the following code? greeting = "Hello, World!" sub = greeting[ :5] + greeting[7:len(greeting)-1] print(sub)