Python Basics
Decision Making
Loops & Random
Fix the Bug
What Does it Print?
100

This function shows something on the screen

What is print()?

100

This keyword starts a decision in Python

What is if()?

100

This type of loop repeats code as long as a condition is true

What is a while loop?

100

Find the code that is incorrect

print(Hello World)

What is missing quotes? Should be print("Hello World")

100

Find out what the below code prints:

print("Hello" + " " + "World")

What is Hello World?

200

This is what we call a named box that stores a value

What is a variable?

200

This operator checks if two things are EQUAL

What is ==?

200

This is what we type to bring in Python's random number tools

What is import random?

200

Find the code that is incorrect

score = 100

if score = 100:

    print("Perfect!")

What is using = instead of ==? Should be if score == 100:

200

Find out what the below code prints:

name = "Justin"

print(f"My name is {name}")

What is My name is Justin?

300

Text surrounded by quotes in Python is called this

What is a string?

300

This keyword handles every other case that doesn't match

What is else?

300

This is what happens if you forget to update the counter in a while loop

What is an infinite loop?

300

Find the code that is incorrect

age = input("How old are you? ")

level = age * 2

print(f"Your level is {level}")


What is missing int() around input()? Can't do math on a string

300

Find out what the below code prints:

x = 10

if x > 5:

    print("Big")

elif x > 3:

    print("Medium")

else:

    print("Small")

What is Big?

400

This function pauses the program and asks the user a question

What is input()?

400

This operator means "is NOT equal to"

What is !=?


400

This function generates a random whole number between two values

What is random.randint()?

400

Find the code that is incorrect (do take take the indentations into account)

lives = 3

while lives > 0:

    print(f"Lives: {lives}")

print("Game Over!")

What is the lives counter never decreasing? Need lives = lives - 1 inside the loop — it's an infinite loop!

400

Find out what the below code prints:

count = 0

while count < 3:

    print(count)

    count = count + 1

What is 0, 1, 2 on separate lines?

500

We use this to turn a string into a number so we can do math with it

What is int()?

500

This keyword goes between if and else to check a second condition

What is elif?

500

This keyword immediately exits a while loop when used inside it

What is break?

500

Find the code that is incorrect

name = "Alex"

print(f"Hello {name}!)

What is a missing closing quote at the end? Should be print(f"Hello {name}!")

500

Find out what the below code prints:

age = 13

level = age * 2

animal = "Wolf"

print(f"Level {level} {animal} warrior!")

What is Level 26 Wolf warrior!?

M
e
n
u