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

Quiz: Python Variables and Data Types · Question 5 of 15

Which value is "falsy" in Python?

Which value is "falsy" in Python?

  1. A."False"
  2. B.[0]
  3. C.0
  4. D." "
Answer & explanation

Correct answer: 0

0 is falsy. "False", [0] and " " are non-empty, so they are truthy.

Can you get the rest right without peeking?

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

Start the quiz →