The Python Papers

The Python Papers

Python Pop Quiz - Number Explosion

Mike Driscoll's avatar
Mike Driscoll
Feb 06, 2026
∙ Paid

You will sometimes come across examples of code that use one or two asterisks. Depending on how the asterisks are used, they can mean different things to Python.

Check your understanding of what a single asterisk means in the following quiz!

The Quiz

What will be the output if you run this code?

A) {range}

B) (range)

C) [0, 1, 2]

D) (0, 1, 2)

E) {0, 1, 2}

St…

User's avatar

Continue reading this post for free, courtesy of Mike Driscoll.

Or purchase a paid subscription.
© 2026 Mike Driscoll · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture