This character is used for division.
What is a slash (/)?
This variable type stores letters, numbers, and symbols.
What is a string?
This character is used to make a comment in Python.
What is a pound sign (#)?
This command will display the text 'Hello world!' on the screen.
What is print("Hello world!")?
This operator is used for multiplication.
What is a single asterisk (*)?
This variable type stores decimal numbers.
What is a float?
A piece of code that can be repeatedly used by calling it and which can return some data.
What is a function?
This command will ask the user for their age.
What is age = input("How old are you?")?
This symbol is used to raise a number to a power (ex: Xy).
What are two asterisks (**)?
This function allows user input text to be assigned a variable.
What is input()?
This symbol is used to compare two variables and find if they are equal.
What is two equal signs (==)?
Bonus points if you can tell me what one (=) does!
This command is used to access libraries.
What is import?
Calculations are ordered according to this when there are multiple.
What is PEMDAS?
Data stored as a string is surrounded by this punctuation.
What are quotation marks ("")?
The four main types of data.
What are strings (str), integers (int), floats (float) and booleans (true/false)?
This is the result of print ("5" + "3").
What is 53?
This operator returns the remainder of a division operation.
What is a modulus (%)?
After creating a function and writing all the code, this must be done for the function to run in Python.
What is calling the function?
Ex:
def generate_artwork()
# some code here
generate_artwork()
A single version of an object can be called this.
What is an instance?
This keyword is used to define a constructor in a class.
What is __init__()?