Basic Math
Data Types
What will be printed
General Python
Variables & Operations
100
This character denotes the division operator.
What is the forward slash (/) ?
100
This common variable type stores letters, numbers, and symbols.
What is a string?
100

First_Name = "Billie"

Last_Name = "Eilish"

print(First_Name + Last_name)


BillieEilish

100
To comment a line in Python, you use this/these character(s).
What is a pound sign (#) ?
100
This operator "glues" two strings together.
What is the concatenation (+) operator?
200
These characters have the highest order of operation in Python.
What are parenthesis?
200
This variable type stores decimal numbers.
What is a float?
200

print(type((3 + 3)/3))

Float

200
What function allows the user to put in information to python?

input()

200

What is the following operator "="

Assignment operator

300

The result of 9 // 5

What is 1?

300

What does the following expression produce & what type?

"abc" * 2 + "xyz"

abcabcxyz

300

a = input("What month were you born?")

print("a")

a

300
In Python, this is the smallest element of a program that can be executed.
What is a statement?
300

T or F

x = "John"
# is the same as
x = 'John'

True

400

What does the following expression produce 

(4+3) * 2 +1

15

400
Data stored as a string is surrounded by these.
What are quotes?
400

print("My favorite food is \n Pizza")

My favorite food is

 Pizza (space before pizza)

400
Python will warn on a logic error, but it will warn (and possibly error) on this type of error.
What is a syntax error?
400

What type is variable x

x = 4      
x = "Sally"

String

500

Denoted as '%', this operator returns the remainder of a division operation.

What is the modulus or Modulo?

500
To determine the variable type of a variable, you would use this function.
What is type()?
500

print( “testing”, 123, “testing”)

testing 123 testing

500

What Types are variables y and z?

y = 3
z = float(y)

Int

float

500

What does the following operator do?

** 

Raise to the power

M
e
n
u