🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Python Lists: all 15 questions

Quiz: Python Lists · Question 2 of 15

What does print([5, 3, 9].sort()) print?

What does print([5, 3, 9].sort()) print?

  1. A.[3, 5, 9]
  2. B.None
  3. C.[9, 5, 3]
  4. D.Error
Answer & explanation

Correct answer: None

sort() sorts in place and returns None.

Can you get the rest right without peeking?

Take the timed Quiz: Python Lists quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →