x = 2y = 8 menor = x if x < y else ymaior = x if x > y else y print("Menor maior com ifs: {} {}".format(menor, maior))
Standard input is empty
Menor maior com ifs: 2 8
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!