Contact: aviboots(AT)netvision.net.il
38,040 questions
49,640 answers
573 users
lst = [(2, 99, "java"), (34, "php", 7), ("python", "c", 89, True)] lst = [tuple(str(ele) for ele in tpl) for tpl in lst] print(lst) ''' run: [('2', '99', 'java'), ('34', 'php', '7'), ('python', 'c', '89', 'True')] '''
lst = [(2, 99, "java"), (34, "php", 7), ("python", "c", 89, True)] lst = [tuple(map(str, tpl)) for tpl in lst] print(lst) ''' run: [('2', '99', 'java'), ('34', 'php', '7'), ('python', 'c', '89', 'True')] '''