Junior — Middle
In which data type in Python is a sequence of characters, i.e., a string, stored?
sobes.tech AI
Answer from AI
In Python, a string is stored in the str data type. It is an immutable sequence of characters that supports many operations such as concatenation, slicing, searching, and formatting.
Example:
text = "Hello, world!"
print(type(text)) # <class 'str'>