Write a program to convert a tuple to a list and vice versa.
CODE FOR THE ABOVE PYTHON PROGRAM :
t = (1, 2, 3, 4, 5)
l = list(t)
print("Tuple converted to list:", l)
l = [6, 7, 8, 9, 10]
t = tuple(l)
print("List converted to tuple:", t)
OUTPUT :
CODE FOR THE ABOVE PYTHON PROGRAM :
t = (1, 2, 3, 4, 5)
l = list(t)
print("Tuple converted to list:", l)
l = [6, 7, 8, 9, 10]
t = tuple(l)
print("List converted to tuple:", t)
OUTPUT :
You'll discover all of the most up-to-date bring innovative here.