fork download
  1. x, y, z = 0.5, 0.0, 0.1
  2.  
  3. vals = {c: globals()[c] for c in dir() if '__' not in c}
  4.  
  5. if sum(vals.values()) < 1:
  6. lowest, *other = sorted(vals, key=vals.get)
  7. globals()[lowest] = sum(vals[c] for c in other) / 2
  8.  
  9. print(x, y, z)
Success #stdin #stdout 0.02s 9264KB
stdin
Standard input is empty
stdout
0.5 0.3 0.1