Contact: aviboots(AT)netvision.net.il
39,988 questions
51,933 answers
573 users
lst_str = ['1, 2, 3', '4, 5, 6', '7, 8, 9'] lst_tpl = [tuple(map(int, part.split(', '))) for part in lst_str] print(str(lst_tpl)) ''' run: [(1, 2, 3), (4, 5, 6), (7, 8, 9)] '''