Convert list to tuple - Python is easy
Converting a list to a tuple is very easy, just use tuple class cast and send your list as param.
The last string shows that you get exactly a tuple using type
operator.
my_list = ['one', 'two', 'three']
my_tuple = tuple(my_list)
print(f"my_tuple: {my_tuple}")
print(f"type: {type(my_tuple)}")
Output:
my_tuple: ('one', 'two', 'three')
type: <class 'tuple'>