1. Home
  2. Data Science
  3. Python
  4. Which data type is used to store a sequence of characters?

Added 5 Feb 2024

Which data type is used to store a sequence of characters?

  1. int
  2. float
  3. str Correct answer
  4. list

Correct answer

C. str

16 views

MCQSEXAM

Explanation

The 'str' (string) data type is used to store a sequence of characters, such as text or words.

Reference

https://www.w3schools.com/python/default.asp

Doubts & discussion

Not sure why the answer is C? 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