This function shows something on the screen
What is print()?
This keyword starts a decision in Python
What is if()?
This type of loop repeats code as long as a condition is true
What is a while loop?
Find the code that is incorrect
print(Hello World)
What is missing quotes? Should be print("Hello World")
Find out what the below code prints:
print("Hello" + " " + "World")
What is Hello World?
This is what we call a named box that stores a value
What is a variable?
This operator checks if two things are EQUAL
What is ==?
This is what we type to bring in Python's random number tools
What is import random?
Find the code that is incorrect
score = 100
if score = 100:
print("Perfect!")
What is using = instead of ==? Should be if score == 100:
Find out what the below code prints:
name = "Justin"
print(f"My name is {name}")
What is My name is Justin?
Text surrounded by quotes in Python is called this
What is a string?
This keyword handles every other case that doesn't match
What is else?
This is what happens if you forget to update the counter in a while loop
What is an infinite loop?
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
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?
This function pauses the program and asks the user a question
What is input()?
This operator means "is NOT equal to"
What is !=?
This function generates a random whole number between two values
What is random.randint()?
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!
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?
We use this to turn a string into a number so we can do math with it
What is int()?
This keyword goes between if and else to check a second condition
What is elif?
This keyword immediately exits a while loop when used inside it
What is break?
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}!")
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!?