Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 answers
573 users
lst = [1, 2, 3, 4, 5] tpl = tuple(lst) print(tpl) ''' run: (1, 2, 3, 4, 5) '''
lst = [1, 2, 3, 4, 5] tpl = (*lst, ) print(tpl) ''' run: (1, 2, 3, 4, 5) '''