PRINT
VARIABLES (Name It!)
INPUT (User Types!)
IF / ELSE (Decisions!)
BUGS (Find the Mistake!)
100

What does print() do?

It shows text/output on the screen.


100

A variable is like a ____ that stores a value.

container / box / label (any of these)container

100

What does input() do?

Lets the user type something in.

100

if is used to make a _____.

decision / choice / condition

100

What’s missing?


if x > 3
    print("Hi")


A colon : after the if line.

200

What prints exactly the word hello?

print("hello")

200

What does this do?


x = 10


Sets the variable x to 10.


200

What will this do?


name = input("Name? ")



Asks the user for their name (by printing it to the screen) and stores it in name (the variable).

200

What does == mean?

“is equal to” (comparison)

200

What’s wrong?


print(hello)


hello needs quotes: "hello" (otherwise it’s an undefined variable).

300

what will this output?

print("Hi")

print("Bye")

Hi
Bye

300

What will this output?


x = 4
print(x)


4

300

What will this output?


name = "Ava"
print("Hi " + name)


Hi Ava

300

What will this output?


x = 5
if x > 3:
    print("Yes")



Yes

300

What’s wrong?


x = 5
if x = 5:
    print("Yes")


= should be == in an if.


400

What will this output?


print(2 + 3)


5

400

What will this output?


x = 4
x = x + 2
print(x)


6

400

What’s the problem?


age = input("Age? ")
print(age + 1)


input() gives text (a string), so you can’t add 1 unless you convert it (like int(age))

400

What will this output?


x = 2
if x > 3:
    print("Yes")
else:
    print("No")

No

400

What’s wrong?


if x > 3:
print("Hi")


Indentation is missing (print should be indented).

500

What will this output?


print("2" + "3")


23 (string combining)

500

What will this output?


x = 3
y = x
x = 10
print(y)


3

500

What will this output if the user types Max?

name = input("Name? ")
print("Hello, " + name + "!")

500

What will this output?


x = 7
if x < 5:
    print("A")
elif x < 10:
    print("B")
else:
    print("C")


B

500

What will happen?


x = 1
if x > 2:
    print("Big")
print("Done")


It prints Done (always), and does NOT print Big.

M
e
n
u