Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1] ?
A. [2, 33, 222, 14]
B. Error
C. 25
D. [25, 14, 222, 33, 2]
Answer:A
Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1] ?
A. [2, 33, 222, 14] B. Error C. 25 D. [25, 14, 222, 33, 2]
Explanation:Execute in the shell to verify.