What does print() do?
It shows text/output on the screen.
A variable is like a ____ that stores a value.
container / box / label (any of these)container
What does input() do?
Lets the user type something in.
if is used to make a _____.
decision / choice / condition
What’s missing?
A colon : after the if line.
What prints exactly the word hello?
print("hello")
What does this do?
Sets the variable x to 10.
What will this do?
Asks the user for their name (by printing it to the screen) and stores it in name (the variable).
What does == mean?
“is equal to” (comparison)
What’s wrong?
hello needs quotes: "hello" (otherwise it’s an undefined variable).
what will this output?
print("Hi")
print("Bye")
Hi
Bye
What will this output?
4
What will this output?
Hi Ava
What will this output?
Yes
What’s wrong?
= should be == in an if.
What will this output?
5
What will this output?
6
What’s the problem?
input() gives text (a string), so you can’t add 1 unless you convert it (like int(age))
What will this output?
No
What’s wrong?
Indentation is missing (print should be indented).
What will this output?
23 (string combining)
What will this output?
3
What will this output if the user types Max?
name = input("Name? ")
print("Hello, " + name + "!")
What will this output?
B
What will happen?
It prints Done (always), and does NOT print Big.