Question Detail

COS 102 lecture 4 Objective Question

Question

In Python, what is the purpose of using quotation marks?
Options
A To define variable names.
B To indicate string literals.
Correct Answer
C To comment out lines of code.
D To denote arithmetic operations.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 20 states, 'Python allows the use of quotation marks to indicate string literals.'

Hint

See the 'Using Quotations' section on page 20 for their primary function.

Question Info