x = 2 y = 8 menor = x if x < y else y maior = x if x > y else y print("Menor maior com ifs: {} {}".format(menor, maior))