Python list to tuple

You can convert a list to tuple by tuple.

a = [1, 2, 'Apple']

t = tuple(a)

print(t)  # (1, 2, 'Apple')

Python List

Python Tutorial