Re: [Tutor] If statement The Python Tutorial 3.4.1

2014-09-14 Thread Alan Gauld
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:

Re: [Tutor] If statement The Python Tutorial 3.4.1

2014-09-14 Thread ALAN GAULD
OK, You are using IDLE and have discovered one of its "features"  which I consider a bug... The alignment of code breaks in IDLE when there is no >>> in the line.  You need to ignore the >>> characters. So, to IDLE, your code looks like if x < 0:            print(...)       elif x == 0: because