if tuple can be converted into a list then a list can be converted into tuple?
Doubt related to tuple
yes, a list can always be converted into a tuple and vice versa.
a=(1,2,3,4)
print(type(a))
<class ‘tuple’>a=list(a)
print(type(a))
<class ‘list’>a=tuple(a)
print(type(a))
<class ‘tuple’>