Which method is used to reverse the elements of a list in place?
-
A
reverse()
Correct answer
-
B
invert()
-
C
flip()
-
D
revolve()
Correct answer
A. reverse()
14 views
Explanation
The reverse() method reverses the elements of a list in place.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ