Please explain as well, thanks:
1) Which of the following is not a data type inPython?
a. float
b. string
c. tuple
d. slice
2) Consider the Python code below
x = [‘dog’, ‘cat’]y = [1,2,3,4]z = [(2,2),(2,4)]
Which of the following statements is correct?
a. x is a list, y is an array, z is a list of arrays
b. x is a list, y is an array, z is a two-dimensional array
c. x, y, and z are all lists
3) Consider the Python code below
a=[[1,2,3],[4,5,6],[7,8,9]]a[2]
What is the correct output? Try to answer without running thecode.
a. [4,5,6]
b. 2
c. 3
d. [7,8,9]
4) Suppose that x is a variable that holds a positivenumber
PayPal Gateway not configured
PayPal Gateway not configured