Frage im Vorstellungsgespräch bei iB Arts

What is the difference between tuples and lists in Python?

Antwort im Vorstellungsgespräch

Anonym

6. Apr. 2021

The main differences between lists and tuples are − Lists are enclosed in brackets ( [ ] ) and their elements and size can be changed, while tuples are enclosed in parentheses ( ( ) ) and cannot be updated. Tuples can be thought of as read-only lists.

2