Python Codes Part 2 Quiz

Python Codes Part 2 Quiz invites you back into the world where tiny bits of code behave like clever riddles. One favourite anecdote among programmers tells of someone who spent half an afternoon laughing after realizing how operators can quietly change the meaning of a simple line they tried to print. That small surprise made them curious about data types and how Python decides what a value really is. These moments often turn frustration into fun because each odd looking result feels like a secret being revealed. The quiz keeps that spirit alive, using short code snippets to show how symbols and values work together, letting every line feel like a playful experiment rather than a dry lesson.

Report a question

You cannot submit an empty report. Please add some details.
Launch Python Codes Part 2 Quiz

Python Codes Part 2

What is the output?
print(type(True))

What is the output?
print(4 % 2)

What is the output?
print(""Hello""[0])

What is the output?
print(3 == ""3"")

What is the output?
print(bool(0.0))

What is the output?
print(""a"" > ""A"")

What is the output?
print(type(5))

What is the output?
print(5 != 5)

What is the output?
print(bool(""False""))

What is the output?
print(9 / 3)

Your score is

The average score is 0%

0%

Sample Questions from This Quiz

  1. What is the output? print(type(True))
  2. What is the output? print(4 % 2)
  3. What is the output? print(“Hello”[0])
  4. What is the output? print(3 == “3”)
  5. What is the output? print(bool(0.0))

Try the full quiz and see how many of these you can answer!

Beyond Python Codes Part 2 Quiz

Launch Python Codes Part 3 Quiz

Python Codes Part 3

Little code puzzles that look easy but play clever games!

Launch Python Codes Part 4 Quiz

Python Codes Part 4

Short lines that look simple but hide clever little surprises!

Launch Python Codes Part 1 Quiz

Python Codes Part 1

Tiny lines of code with big laughs and sneaky logic twists!

Launch Astronomer Part 2 Quiz

Astronomer Part 2

When staring at space slowly turned into real progress!

Launch Scientists Part 1 Quiz

Scientists Part 1

Big ideas discovered with small tools and lots of patience!

Launch Scientists Part 2 Quiz

Scientists Part 2

Accidental discoveries that changed the world forever!

Launch Heat Part 2 Quiz

Heat Part 2

Thermal facts so cool they somehow manage to feel hot!

Launch Heat Part 3 Quiz

Heat Part 3

Don’t get steamed by these heat tricks!