def remove_empty_tuples(lst_tpl):
new_lst_tpl = filter(None, lst_tpl)
return new_lst_tpl
lst_tpl = [(), ('python', '12'), (), ('c', 'c++'), ('',''), ('php', 'c#', 17), ()]
print(list(remove_empty_tuples(lst_tpl)))
'''
run:
[('python', '12'), ('c', 'c++'), ('', ''), ('php', 'c#', 17)]
'''