Which function does in-place reversal of objects in a list?

Which function does in-place reversal of objects in a list?
A . list.sort([func])
B . list.pop(obj=list[-1])
C . list.remove(obj)
D . list.reverse()

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments