Python -Liste hinzufügen, wenn nicht vorhanden
lst.append(3) if 3 not in lst else lst
Hemang Joshi
lst.append(3) if 3 not in lst else lst