Lista de Python Agregar si no está presente

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