Suppose I have a list:
a=[1,2,3,4,5]
Now I want to convert this list into a tuple. I thought coding something like this would do:
tuple is not mutable in python.
so after you initial it with tuple(...), it can't be modified.
a = [1,2,3,4,5] tuple(a)