0
What is tupple
2 Answers
+ 4
tuple is similar to a list but they cant be changed
and a tuple uses () - example
myTuple = (1, 2)
If you try
myTuple[0] = 6
will give you an error cause you cant change the elements of a tuple
+ 4
tupple is a secquence of objects just like lists but tupple is immutable(not changable) where as lists are mutable i.e changable
nums = (1, 2, 'a', 4, 'b' )#tupple
nums = [1,2,'a','b']#list