A non-decimal number.
Include an example.
What is an int
?
example: 7
A conditional statement.
What is an if statement?
This function allows you to output to the console.
What is print(str)
?
This is the output of the following code:
x = 7 y = 3 print(x + y)
What is:
10
The name of each "address" in a list.
What is an index?
A decimal number.
Include an example.
What is a float?
This can only have a value of True
or False
.
What is a boolean?
This function allows you to get the data type of a variable.
What is type(var)
?
This is the output of the following code:
x = '7' y = "3" print(x + y)
What is:
'73'
The version of Python I asked you to install on your computers.
What is 3.6 or later?
This is because f-strings were released in python3.6.
Words, sentences, and more.
Include an example.
What is a string
?
Example: "Hello, world!"
This allows code to be repeated a specified number of times.
What is a for loop?
This function allows you to turn (almost) any value into a string.
What is str(val)
?
This is the output of the following code:
name = 'Jackson' company = 'j1442 LLC' print('{user_name} works at {user_company}' .format(user_name=name, user_company=company) )
What is Jackson works at j1442 LLC
?
This is how you "escape" a single quote in a string.
What is \'
?
A simple collection of data.
Include an example.
What is a list
?
Example: [10, 20, 30, 40, 50]
This allows code to be repeated an unspecified number of times.
This function allows you to get user input from a prompt.
What is input(prompt)
?
What is the output of the following code?
name = 'Johnny' age = 34 print(f'{name} is {age-11} years old.')
What is Johnny is 23 years old.
?
The expanded form of the acronym "IDE."
What is Integrated Development Environment?
A collection of key/value pairs.
Include an example.
What is a dictionary
?
Example: {'Jackson': 100, 'Ethan': 150, 'Justin': 15}
This is the syntax for a runner in python.
What is
if __name__ == '__main__':
This function allows you to read a file.
What is open()
?
This is the output of the following code:
print(f'{Joey} is {17+13} years old.')
What is ERROR?
The value that represents "nothing" in python.
What is None
?