Hi,
Today I want to explain you the concept of a tuple in python.
A tuple is a sequence of immutable Python objects.
The difference with the list is the syntaxe.
A list is with brackets whereas tuples with are parenthesis.
But be careful to access to one value you have to use some brackets as well !
list = [1,2,3,4]
tuple=(1,2,3,4)
tuple[0] = 1
Have a good day !
MASTERY 24 by aureliemartinette is licensed under a Creative Commons Attribution 4.0 International License.