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

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to