1/25
Fill-in-the-blank practice flashcards for Chapter 1 covering Python syntax, input/output, variables, strings, numeric types, error handling, comments, and historical background.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Python-related tools often have the letters __________ in their name.
py
A __________ is a collection of code that can be used in other programs.
library
__________ is a widely used Python library for data analysis.
Pandas
The Hello World program is only one line in Python, but it is __________ lines in Java.
five
By default, each value printed in a print() statement is separated by a __________ character in the output.
space
By default, the print() function adds a __________ character at the end of the output.
newline
The __________ option in print() can be used to customize the character placed between multiple printed values.
sep
The __________ option in print() can be used to continue printing on the same line instead of adding a newline character.
end
A __________ refers to a value stored in memory.
variable
A short message in an input statement that indicates the program is waiting for input is called a __________.
prompt
In Python error messages, the abbreviation EOF stands for __________.
End of File
A statement sets a variable to a value using the assignment operator __________.
=
Python's style guide recommends writing variable names in __________ case, which uses all lowercase letters with underscores between words.
snake
Reserved words in Python that have special functions and cannot be used as variable names are called __________.
keywords
The built-in function __________ returns the length or number of characters in a string.
len()
__________ is an operation that combines two or more strings sequentially using the + operator.
Concatenation
An __________ data type represents a whole number, while a floating-point data type represents a decimal number.
integer
In Python operator precedence, the exponentiation operator is represented by __________.
**
In a Python traceback report, the __________ character shows the specific position where Python detected the error.
caret (^)
An error caused by missing closing quote marks that results in the string not terminating before the end of line is a SyntaxError with the message __________.
EOL while scanning string literal
Each single-line comment in Python begins with a __________ character.
hash (#)
A multi-line documentation string written at the beginning of a Python program using triple quotes is known as a __________.
docstring
The creator of the Python programming language is __________.
Guido van Rossum
Guido van Rossum named the Python programming language after the British comedy group __________.
Monty Python
Python's first release, Version 0.9.0, appeared in the year __________.
1991

In October 2021, Python became the #1 language on the __________ index.
TIOBE