McqMate
| 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. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet