Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 332 Bytes

lists.rst

File metadata and controls

40 lines (22 loc) · 332 Bytes

Question 1:

lst=[0,1,2]

what is the result of lst.pop()

a 0

b 1

c 2

Question 2

Lists can have multiple object types.

a True

b False

Question 3

lst=['a','b','c']

What is the result of lst[1:]?

a 'b'

b ['b', 'c']

c ['a', 'b']

d 'c'