Data Types
Variables
Print Command
What Will the Computer Print?
Name the Data Type
100
What is the total number of data types we discussed in class

Four

100

All variables must have a _____ and a ______.

name and value

100

Write the proper syntax for the print command

print()

100

message = "says hello"

myName = "Ms. Jones"

print(myName, message)

Ms. Jones says hello

100

"Y'all got a quiz tomorrow"

String (str)

200

What is the full name of the data type shortened to "float"?

Floating Point Numbers 

200

How would I create a variable named yourQuizGrade and assign it to the value of A+++

yourQuizGrade = "A+++"

200

(True or False) When printing a string, you must include quotation marks.

True

(ex: print("the answer is True") is correct)

200

print("hello world" + 2)

Error

200
10

Integer (int)

300

What is the abbreviation of the integer data type?

int
300

What is wrong with this variable name?

2004Camry

Starts with a number

300

Write a line of code that will print the number 12 as a string type (instead of an integer)

print("12")

300

print("2+3*4")

2+3*4

300

1234321.0

Floating Point Number (float)

400

What is the data type that represents binary responses (ex: True/False)?

Boolean (bool)

400

What is it called when you change the value of a variable?

Reassignment

400

(True or False) When printing a variable, you must include quotation marks.

False

(ex: if you have a variable name myVariable, print(myVariable) is correct syntax)

400

favColor = "Orange"

print(fav_color)

ERROR

400

"True"

String (str)

500

What must a value have to be considered a String?

Quotation marks

500

Give one way to improve this variable name according to our naming conventions:

msjonessroomnumber = 124

ms_joness_room_number

or

msJonessRoomNumber

500

The variables for prices of folders and binders are as follows:

folder = .75

binder = 1.25

Write a print statement that will tell me how much 2 folders and 3 binders will cost.

print(2*folder + 3*binder)

500

jar1 = 5

jar2 = 3

total = jar1 + jar2

print("total")

total

500

False

Boolean (bool)

M
e
n
u