month = ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec']
converting_list = month
print(converting_list)
print(type(converting_list))
a tuple out of a list
month = ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec']
converting_list = month
print(converting_list)
print(type(converting_list))
a tuple out of a list
Use the tuple()
function
month =
['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec']
converting_list = tuple(month)
print(type(converting_list))
This returns...
<class 'tuple'>
Hope this helps!
print(tuple(month))
try this basic to change list directly to tuple without an issue.