Lista Python Dodaj, jeśli nie jest obecna

lst.append(3) if 3 not in lst else lst
Hemang Joshi