Question Detail

COS 102 Python strings Objective Question

Question

Which of the following is not one of the three main ways Python offers to enclose your text for string creation?
Options
A Single Quotes ('')
B Double Quotes ("")
C Triple Quotes ("""""")
D Backticks (``)
Correct Answer
Correct Answer

Option D is the correct answer.

Detailed Explanation

The 'Creating Strings' section (page 4) lists Single Quotes, Double Quotes, and Triple Quotes as the main ways to enclose text. Backticks are not mentioned as a method for string creation in Python.

Hint

Review the 'Creating Strings' slide for the valid methods.

Question Info