Q. Which Python method sorts a list in place?

A
sort()
B
sorted()
C
reverse()
D
append()
Solution:

The sort() method sorts a list in place, modifying the original list, unlike sorted() which returns a new list.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!