A learner asks what a Python string really is. It is a sequence of zero or more:
- Characters
- Statements
- Parameters
- Expressions
Show answer and solution
Correct answer: A. Characters
1. A string holds text of any length, even nothing.
2. The pieces it holds are single letters, digits or symbols.
3. So a string is a sequence of characters.
_Source: OpenStax Introduction to Python Programming, Chapter 3._