1. Home
  2. Subjects
  3. Data Science
  4. Python

Python MCQs · Page 16

595 multiple choice questions with answers in Data Science.

Showing 376–400 of 595

What is the difference between sort() and sorted() in Python?

  1. sort() returns a new list; sorted() changes in place
  2. They are identical
  3. sorted() works only on strings
  4. sort() changes the list in place; sorted() returns a new list Correct answer
MCQSEXAM Read explanation