← 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?
- A.[3, 5, 9]
- B.None
- C.[9, 5, 3]
- 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 →