Contact: aviboots(AT)netvision.net.il
39,990 questions
51,935 answers
573 users
tpl = ('python', 'c', 'c++', 'c#', "java") tpl = tuple(item for item in tpl if item != 'c#') print(tpl) ''' run: ('python', 'c', 'c++', 'java') '''
tpl = ('python', 'c', 'c++', 'c#', "java") index = tpl.index('c#') tpl = tpl[:index] + tpl[index + 1:] print(tpl) ''' run: ('python', 'c', 'c++', 'java') '''