Play this short Python quiz to test your Python knowledge!

Who wants to be a millionaire?

At EuroPython 2024 I did a lightning talk where I presented a “Who wants to be a millionaire?” Python quiz. There was a whole performance going on during the lightning talk, but the questions themselves were very interesting and I'm sharing them here so that you can test your Python knowledge!

Question 1

This is an easy one to get you started.

What's the output of print("Hello, world!")?

  • Hello, world!
  • Hello world!
  • Hello world
  • Hello world!!

Question 2

How many soft keywords does Python 3.13 have?

  • 0
  • 2
  • 4
  • 8

Question 3

How many times does the Python 3.13 glossary use the word “dunder”?

  • 0
  • 2
  • 15
  • 42

Question 4

The final question is pretty much impossible unless you've been doing Python for quite a while...

What does the following Python 2 code output?

print`3<3`[~3]
  • SyntaxError
  • 42
  • 3
  • a

Become a better Python 🐍 developer, drop by drop 💧

Get a daily drop of Python knowledge. A short, effective tip to start writing better Python code: more idiomatic, more effective, more efficient, with fewer bugs. Subscribe here.

Previous Post

Blog Comments powered by Disqus.