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

Latest PCEP-30-02 Practice Questions with 124 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments