Vidyalelo
Python · Q62

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 62

Q62

Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse()?

A.
[3, 4, 5, 20, 5, 25, 1, 3]
B.
[1, 3, 3, 4, 5, 5, 20, 25]
C.
[25, 20, 5, 5, 4, 3, 3, 1]
D.
[3, 1, 25, 5, 20, 5, 4, 3]
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board