How many elements will the list2 list contain after execution of the following snippet?

How many elements will the list2 list contain after execution of the following snippet?

list1 = [False for i in range (1, 10) ]

list2 = list1 [-1:1:-1]
A . zero
B . five
C . seven
D . three

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments