Module 2 · Python literals · Lesson 6 of 6
Quiz
Five quick questions on literals. Pick an answer to see whether it's right and why — there's no penalty for guessing, so give it a go.
1
What type is this literal?
3.0
2
Which one of these is a string?
3
How many possible values does a boolean have?
4
What does this literal mean?
1_000_000
5
Which is the correct way to write the boolean for 'true'?
That wraps up Python's literals. You can now recognise the four everyday types on sight — the foundation for variables and operators, coming up next.