164k views
1 vote
Stuff = []

stuff.append(1.0)

stuff.append(2.0)

stuff.append(3.0)

stuff.append(4.0)

stuff.append(5.0)

print(stuff)

(1) What data type are the elements in stuff?
(2) What is the output for print(len(stuff))?
(3) What is the output for print(stuff[0])?

1 Answer

2 votes
(1) The data type of the elements in stuff is float.

(2) The output for print(len(stuff)) would be 5 because there are 5 elements in the stuff list.

(3) The output for print(stuff[0]) would be 1.0 because the value at index 0 in the stuff list is 1.0.


Solution: Float, 5, 1.0
User Tutts
by
6.2k points