Variable Types
Print/Input
Math
IF
General
100
variable = "this"
String
100

What does this output? print("Hello, World")

Hello, World

100
How do you print the sum of the variables a and b
print(a+b)
100

Why would you need an if/else statement?

To control the flow of code execution.

Compare objects.

100

What is the name of the student sitting 2 seats from you?

" well are you right or not ? "

200
variable = 22
Integer
200
How would you get an input from the user and assign it to a variable named name?
name = input()
200
print "a" + "b"
ab
200

How do you write the statement “If the number is 2 then print x”

if num == 2: print(x)

200

What year did Columbia High School open?

2006

300
variable = 55.5
Float
300

How do you ask the user to enter their integer age?

age = int(input())

300
print "a" * 3
aaa
300

How do you write the statement "If a varibale named num is equal 2,  print "Equal"

if num ==2:

    print("Equal")

300

Where are ball pythons found?

Africa

400
variable = True
Boolean
400

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())

400

print "a" + str(3)

a3

400

How do you write the statement "If a varibale named num is greater than or = 9, print "true"

if num >= 9

    print("true")

400

Is Python interpreted or compiled?

interpreted

500
What is a variable?
Something that stores a value.
500

How do you make two print statements print on the same line?

print(a, end="") print(b, end="")

500

What will happen with this code 

print "a" + 3

error message

500

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")

500

Capybaras were once classified by the Catholic Church as

fish