Basic Math
Data Types
General Python
Print()
Data Structures & Operators
100
This character denotes the division operator.
What is the forward slash (/) ?
100

This common data type stores letters, numbers, and symbols.

What is a string?

100

Data stored as a string is surrounded by these.

What are quotes or apostrophes?

100

The result of:

print(True and False)

False

100

The result of:

my_list = [5,4,3,2,1]

print(my_list.append(7))

[5,4,3,2,1,7]

200

The result of 10 / 5

What is 2.0?

200

This data type stores decimal numbers.

What is a float?

200
This operator "glues" two strings together.
What is the concatenation (+) operator?
200

The result of:

print(10 - 4 * 2)

2

200

The result of [3,4] == [4,3]

False

300

The result of 10//2.

5

300
The result for: print(type("123,714.21"))

String

300

This statement allows for conditional execution of a line of code or group of lines based on the value of a conditional expression.

What is an 'if' statement?

300

The result of:

print(10%2)

0

300

The result of print(20//6)

3

400

To raise the number 5 to the power of 8, you must use the power operator. This/These symbol(s) denote the power operator.

What are two asterisks (**) ?

400

The result of:

print("1" + "13")

113

400
This built-in Python function returns the length of many objects, including Lists.
What is len()?
400

The result of:

c = 2 ** 3 + 4 * 2

print(c)

16

400

The result of print("12"*3)

121212

500
Denoted as '%', this operator returns the remainder of a division operation.
What is the modulus?
500

To determine the data type of a variable, you would use this function.

What is type()?

500

The following Python code loops forever. What is it missing?

n = 10

while n<100:

print n

What is a increment statement?

500

The result of:

print(2 * 3 ** 2 * 2)

36
500

4 Data Structure types in Python

Lists, Sets, Tuples, Dictionaries

M
e
n
u