конвертировать список в Python Tuple
the_list = [1, 'a', 2.7]
the_tuple = tuple(the_list)
Yossi Jacobi
the_list = [1, 'a', 2.7]
the_tuple = tuple(the_list)
sample_list = ['Compile', 'With', 'Favtutor']
#unpack list items and form tuple
tuple1 = (*sample_list,)
print(tuple1)
print(type(tuple1))