Variables
Output
Input & Data Types
Math
Putting It All Together
100

What symbol assigns a value to a variable?

What is =?

100

What function displays text?

What is print()?

100

What function gets user input?

What is input()?

100

What does + do?

What is addition?

100

What does this do:
name = input()

What is stores user input?

200

What does x = 10 do?

What is stores 10 in x?

200

What will this print:
print("Hello")

What is Hello?

200

What type is "hello"?

What is string?

200

What does * do?

What is multiplication?

200

What will this print:
num = int(input())
print(num + 5)

What is input plus 5?

300

Can variable names start with numbers?

What is no?

300

What will this print:
x = 5
print(x)

What is 5?

300

What type is 10?

What is integer?

300

What does / return?

What is a float?

300

What is wrong:
num = input()
print(num * 2)

What is it repeats text, not math?

400

Which is better variable name: a or user_age?

What is user_age?

400

What will this print:
print("Hi", "there")

What is Hi there?

400

How do you turn input into an integer?

What is int()?

400

What does // do?

What is integer division?

400

What will this print:
x = int(input())
y = int(input())
print(x + y)

What is sum of two numbers?

500

What error happens if you use a variable before defining it?

What is a NameError?

500

What will this print:
x = 3
y = 2
print(x * y)

What is 6?

500

Why does this fail?
age = input()
print(age + 1)

What is input is a string (needs conversion)?

500

What does % return?

What is remainder?

500

What does this program do:
num = int(input())
print(num % 2)


What is checks if number is even or odd?

M
e
n
u