import re
def rimuovi_parentesi(testo):
return re.sub(r'\([^)]*\)', '', testo)
variabile = "Sky Uno (2) (Backup)"
variabile2 = 'Bloomberg (FHD) (hd2 - h254)'
variabile3 = 'Sport Sky (ONLY LIVE) !!!'
variabile4 = "(only test) Sky DE (2)"
risultato = rimuovi_parentesi(variabile) + '\n' + rimuovi_parentesi(variabile2) + '\n' + rimuovi_parentesi(variabile3).rstrip('!') + '\n' + rimuovi_parentesi(variabile4).strip()
print("Risultato:", risultato)