fork download
  1. def ShouldISwitch(oldComp, newComp):
  2. if newComp >= 1.3 * oldComp:
  3. return "Switch you dummy!"
  4. return "Stay! Don't move a muscle!"
  5.  
  6. if __name__ == "__main__":
  7. print (ShouldISwitch(475, 525))
Success #stdin #stdout 0.02s 9292KB
stdin
Standard input is empty
stdout
Stay! Don't move a muscle!