How do I write
>>> 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'
...
This is in IDLE. As soon as I hit Enter after writting first line, it executes the first line and I am not able to write the full code.
x
variable. – Kauslick