Question Detail

COS 102 Python strings Objective Question

Question

Which of the following is NOT a recognized way to enclose strings in Python, according to the document?
Options
A Single quotes ('Hello')
B Double quotes ("Python")
C Triple quotes ("""Multi-line""")
D Backticks (`text`)
Correct Answer
Correct Answer

Option D is the correct answer.

Detailed Explanation

The document lists single, double, and triple quotes as the main ways to enclose text in Python strings. Backticks are not mentioned.

Hint

Check the 'Creating Strings' section for valid quote types.

Question Info