Variables & Data Types
Printing & Input
Loops
Conditionals
Debugging
100

This data type stores whole numbers like 3, 10, or -5.

What is an integer (int)?

100

The Python command used to show text on the screen.

What is print()?

100

A loop that repeats as long as a condition is true.

What is a while loop?

100

This keyword starts a conditional statement.

What is if?

100

print("Hello World!)

What is missing closing quotation mark? It should be print("Hello World!").

200

This is the correct way to assign the value 7 to a variable named age.

What is age = 7?

200

This command lets the user type information into the program.

What is input()?

200

What is often used as an iterative loop?

What is a for loop?

200

This keyword checks another condition when the first one is false.

What is elif?

200

number = input("Enter a number: ")

print(number + 5)

What is treating input as a string? Convert it: int(number) + 5.

300

The data type of "Hello" is this.

What is a string (str)?

300

x = 6

The output of print("Hi " + "there" + x).

Error, ha.
can only concatenate str (not "int") to str

300

What numbers would for i in range(5) produce?

What is 0, 1, 2, 3, 4?

300

What is the output of this code?

if 3 > 5 or 5 > 3 and 6 > 7 or 5 <= 5:

    print("Yes")

else:

    print("No")

What is Yes?

300

for i in range(3)

    print(i)

What is missing colon after range(3)?

400

True or False values in Python are called this.

What is a boolean (bool)?

400

This is what happens when you try to add a string and an integer, like "age: " + 12.

What is a TypeError?

400

This keyword stops a loop early.

What is break statement?

400

These symbols are used to compare two values (name one for each team member).

What is ==, !=, <, >, <=, or >=?

400

if x = 10:

    print("Ten")

What is using = instead of ==? It should be if x == 10:.

500

This is what Python calls numbers with decimals like 3.14.

What is a float?

500

What you need to do if you want to treat the result of input() as a number instead of a string.

What is convert it using int() or float()?
Type casting

500

What does this code print?

for i in range(2):

    print("Python!" + i)

Error, ha

500

The keyword used to run code when all other conditions fail.

What is else?

500

while count < 5:

    print(count)

What is forgetting to update count, causing an infinite loop? Must include count += 1.