KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

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

  1. Char
  2. String
  3. Text
  4. Word

Python Funda

2 Likes

Answer

String

Reason — In Python, a string is defined as a collection of one or more characters enclosed within single, double or triple quotes. It is used to store a sequence of characters.

Answered By

3 Likes


Related Questions