Course Solutions Uncategorized (Solved) : Please Explain Well Thanks 1 Following Data Type Python Float B String C Tuple D Slice 2 Q30667397 . . . .

(Solved) : Please Explain Well Thanks 1 Following Data Type Python Float B String C Tuple D Slice 2 Q30667397 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post