What symbol is used to make a comment in Python?
#
What data type is used to store whole numbers?
int
What keyword is used to make a decision in Python?
if
What keyword is used to define a function in Python?
def
What data type is used to store a collection of items in order?
list
What function is used to display text on the screen?
print()
What keyword is used to assign a value to a variable?
No keyword—use =
What keyword allows you to run code repeatedly while a condition is true?
while
What function do you use to get input from a user?
input()
How do you access the first item in a list called fruits?
fruits[0]
What is the extension used for Python files?
.py
What function can you use to check the type of a variable?
type()
What is the keyword used to skip the rest of the loop and start the next iteration?
continue
What do we call a value we pass into a function?
Argument
What function adds an item to the end of a list?
append()
What is the name of the error you get when your code doesn't follow Python's rules?
SyntaxError
What data type is "True"? (with quotes)
str
What is the result of this condition: 5 > 10?
False
What does return do in a function?
Sends a result back to the caller
What Python data type is used to store key-value pairs?
dictionary
What is the name of the environment that runs Python code interactively, line by line?
DAILY DOUBLE!!!
Interpreter
What will be the result of this expression: 3 + 4.5?
7.5
What is printed by this code: for i in range(2): print(i)?
0 and 1
What is printed by this function call: print(greet("Alice")), if def greet(name): return "Hi " + name?
Hi Alice
What is printed: student = {"name": "Mia", "grade": 90}
print(student["name"])?
DAILY DOUBLE!!!
Mia