This type of variable can only have two values: True or False
What is a boolean?
In Python this is the operator for multiplication.
What is an asterisk? (or star)
It's what this statement does:
print("Hello world!)
What is prints Hello World! to the screen.
It's what this statement will output:
print(3 - 2 + 5).
What is 6?
This is the escape character to print a new line in a string.
What is \n?
This type of variable is used to store text which can include letters, numbers and symbols.
What is a string?
In Python, this is the operator you place between numbers to divide them.
What is a /? (or slash)
This is the statement you use to ask the user to enter information like a name or number.
What is input?
It's what this statement will output:
print(6 / 2 * 3)
What is 9?
This is the escape character to print extra space or a tab in Python.
What is \t?
This type of variable is used to store only whole numbers. They cannot have decimal points.
What is an integer?
In Python, this operator allows you to raise a number to a power.
What is two asterisks? (star star)
What is an if statement?
It's the operation that happens first in this statement:
print(6 + 2 / 3 * 4 + (1 + 1))
What is (1+1)?
This is the escape character to print a backslash.
What is \\?
This type of variable is used to store numbers that include decimal points.
What is a float? (or floating point)
In Python, this is the operator you use to compare two items to see if they are equivalent.
What is ==?
x = 10
y = 20
print(str(y/x))
What is 2?
It's the operation that happens first in this statement:
print(2 * 3 ** 6)
What is 3 ** 6?
This is the escape character to print a quotation mark.
What is \"?
This is what it's called in Python when you change a variable's type to perform certain operations on it, like printing it in a print statement.
What is typecasting?
In Python, this is the assignment operator, for when you load a value generated on the right side of the operator to the variable on the left side of the operator.
What is the equal sign? (=)
It's what this statement does:
import random
num = int(random.randint(10, 20))
print(str(num))
if num > 14:
print("Wow this is a big number!")
else:
print("This number isn't very big.")
What is generates a random number between 10 and 20 and prints a message depending on the size of the number?
It's the operation that happens last in this statement:
print(1 * 3 + (8 * 2))
What is addition? (or 3 + 16)
This is the escape character for a single quote ' in Python.
What is \'?