How a ‘tuple’ is different from ‘list’?

How a ‘tuple’ is different from ‘list’?

list and tuple

Kumar Amit Answered question February 6, 2023
0

Tuple is immutable type while list mutable type. This means that values in a tuple cannot be modified.


#creating tuple
tuple=()
#passing value
tuple=(1,"a")
print(tuple)

Kumar Amit Answered question February 6, 2023
0