Question Detail

COS 102 Python strings Objective Question

Question

In Python, what is a string fundamentally defined as?
Options
A A single character
B A sequence of numbers
C A sequence of characters wrapped in quotes
Correct Answer
D A block of code
Correct Answer

Option C is the correct answer.

Detailed Explanation

According to the document, 'In Python, a string is simply a sequence of characters wrapped in quotes.'

Hint

Refer to the 'What are Strings?' section.

Question Info