fork(2) download
  1. x = 2
  2. y = 8
  3.  
  4. menor = x if x < y else y
  5. maior = x if x > y else y
  6.  
  7. print("Menor maior com ifs: {} {}".format(menor, maior))
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
Menor maior com ifs: 2 8