Which keyword is used to import a library in Python?
Choose the correct keyword.
Think about bringing in outside code.
Which keyword is used to define a function in Python?
Choose the correct keyword.
It is a short three-letter keyword.
What data type is the value True in Python?
Choose the correct data type.
It represents true or false.
What will len([1,2,3]) return in Python?
Choose the correct output.
len counts the number of items in the list.
Which operator is used to check if two values are equal in Python?
Choose the correct operator.
A single equal sign is used for assignment instead.
What does a for loop do in Python?
Choose the best definition.
Think about repeating actions.
What is the correct file extension for a Python file?
Choose the correct extension.
It is the shortest of the four options.
Which of these correctly prints text to the screen in Python?
Choose the correct line of code.
Think about the most basic output command in Python.
Which symbol is used to write a comment in Python?
Choose the correct symbol.
It looks like a pound or number sign.
Which of these is a valid Python list?
Choose the correct example.
Lists use square brackets in Python.