What does this output? print("Hello, World")
Hello, World
Why would you need an if/else statement?
To control the flow of code execution.
Compare objects.
What is the name of the student sitting 2 seats from you?
" well are you right or not ? "
How do you write the statement “If the number is 2 then print x”
if num == 2: print(x)
What year did Columbia High School open?
2006
How do you ask the user to enter their integer age?
age = int(input())
How do you write the statement "If a varibale named num is equal 2, print "Equal"
if num ==2:
print("Equal")
Where are ball pythons found?
Africa
If I wanted to get a float as input from user, how would it be done if decimal was my variable name.
decimal = float(input())
print "a" + str(3)
a3
How do you write the statement "If a varibale named num is greater than or = 9, print "true"
if num >= 9
print("true")
Is Python interpreted or compiled?
interpreted
How do you make two print statements print on the same line?
print(a, end="") print(b, end="")
What will happen with this code
print "a" + 3
error message
Write a program that asks for your age. If you are over 18 it outputs the message, “Over 18”, otherwise it outputs, “Under 18”.
age = int(input()) if age > 18: >print("Over") else: >print("Under")
Capybaras were once classified by the Catholic Church as
fish