Computer Science
What are the differences between strings and tuples?
Python Tuples
3 Likes
Answer
| Strings | Tuples |
|---|---|
| A sequence of characters used to represent text. | An ordered collection of elements that can include different data types. |
| Strings are defined using single quotes ' ', double quotes " ", or triple quotes ''' ''' for multi-line strings. | Tuples are defined using parentheses (). |
Answered By
2 Likes