+ 2
What is the difference between a tuple and a list?
2 Respostas
+ 8
Tuple --> Immutable or unchangeable
Lists --> Mutable or Changeable
- by: Roman J.
And just an additional to what he stated:
Tuple ( )
Examples:
"string", 2, 4.2, False
("string", 2, 1.5, True)
Lists [ ]
Example:
["string", 1.4, 42, True]
Just continue your Python Course and you will learn it in your next modules.
+ 1
Tnx 🙂