Python list to tupleYou can convert a list to tuple by tuple. a = [1, 2, 'Apple'] t = tuple(a) print(t) # (1, 2, 'Apple')
Comments
Powered by Markdown