All pastes #473911 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-06 14:18 UTC
rendered paste body
>>> x = int(raw_input("Please enter an integer: "))
>>> if x < 0:
...      x = 0
...      print 'Negative changed to zero'
... elif x == 0:
...      print 'Zero'
... elif x == 1:
...      print 'Single'
... else:
...      print 'More'
...