1.

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» Right option is (a) [2, 33, 222, 14]

The explanation is: Execute in the shell to verify.


Discussion

No Comment Found