Which of the following statements about strings in Python is true?
-
A
Strings can contain both letters and numbers.
Correct answer
-
B
Strings are mutable.
-
C
Strings can only contain ASCII characters.
-
D
Strings can be represented using single quotes but not double quotes.
Correct answer
A. Strings can contain both letters and numbers.
16 views
Explanation
Strings in Python can contain alphanumeric characters, symbols, and spaces.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ