[Tutor] If statement The Python Tutorial 3.4.1
Alan Gauld
alan.gauld at btinternet.com
Sun Sep 14 17:01:31 CEST 2014
On 14/09/14 09:00, ALAN GAULD wrote:
> So, to IDLE, your code looks like
>
> if x < 0:
> print(...)
> elif x == 0:
Web mail screwed things up. That should be:
> if x < 0:
> print(...)
> elif x == 0:
> To fix it you need to make it look like this on screen:
>>> if x < 0:
print(...)
elif x == 0:
print(....)
else:
print(....)
>
> Which looks wrong to you and me but IDLE sees it as good.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list