fork download
  1. x = int(input("Please enter an integer: "))
  2.  
  3. if x < 0:
  4. x = 0
  5. print('Negative changed to zero',x)
  6. elif x == 0:
  7. print('Zero',x)
  8. elif x == 1:
  9. print('Single',x)
  10. else:
  11. print('More',x)
  12.  
Success #stdin #stdout 0.02s 5864KB
stdin
42
stdout
Please enter an integer: More 42