1. Home
  2. Data Science
  3. Python
  4. Which of the following statements about strings in Python…

Added 4 May 2024

Which of the following statements about strings in Python is true?

  1. Strings can contain both letters and numbers. Correct answer
  2. Strings are mutable.
  3. Strings can only contain ASCII characters.
  4. Strings can be represented using single quotes but not double quotes.

Correct answer

A. Strings can contain both letters and numbers.

16 views

MCQSEXAM

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

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs