Question Detail

COS 102 lecture 4 Objective Question

Question

What is the definition of Python keywords?
Options
A Words that can be used interchangeably with variable names.
B Reserved words that should not be used as variable, constant, function names, or identifiers in Python code.
Correct Answer
C Words that are automatically suggested by the Python interpreter for code completion.
D Words that signify the start of a new code block or module.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 15 states: 'Python keywords are reserved words in Python that should not be used as variable, constant, function name, or identifier in your code.'

Hint

Refer to the first bullet point on page 15 under the 'Keywords' section.

Question Info