What are the differences between a list and a tuple? How do you create a tuple from a list? How do you create a list from a tuple?
The difference between list and tuple is list is mutable while tuple is imutable.
that means we can change list items.we can add or delete a list item.
we can not change tuple items.
we can create a tuple from list by using tuple method.
syntax for creating a tuple from a list is
tuple1=tuple(list)
we can create a list from tuple by using list metod.syntax for creating a list from a tuple is
list1=list(tuple)