Lista de Python Adicionar se não estiver presente
lst.append(3) if 3 not in lst else lst
Hemang Joshi
lst.append(3) if 3 not in lst else lst