Q.

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. [2, 33, 222, 14]
Explanation: execute in the shell to verify.
1.2k
0
Do you find this helpful?
18

Discussion

No comments yet