Re: Newbie: unexpected indenting error

2014-07-13 Thread Denis McMahon
On Sun, 13 Jul 2014 09:01:12 +0200, Martin S wrote: > While coding a rating calculator I am using a for-loop within > if-elif-else. > When using the for-loop in the first if instance my editor accepts this, > but when using the same for-loop within the elif instance it complain > about "unexpected

Re: Newbie: unexpected indenting error

2014-07-13 Thread Martin S
Thanks, the problem was apparently a mix of way to indent the code. It's confused the H out of the editor. Using standard indentation solved the error. 2014-07-13 9:28 GMT+02:00 Gary Herron : > On 07/13/2014 12:01 AM, Martin S wrote: >> >> While coding a rating calculator I am using a for-loop wit

Re: Newbie: unexpected indenting error

2014-07-13 Thread Mark Lawrence
On 13/07/2014 08:01, Martin S wrote: While coding a rating calculator I am using a for-loop within if-elif-else. When using the for-loop in the first if instance my editor accepts this, but when using the same for-loop within the elif instance it complain about "unexpected indent". Like so: def

Re: Newbie: unexpected indenting error

2014-07-13 Thread Ben Finney
Martin S writes: > What the...? What am I doing wrong? > (hopefully the indents translate; else def, if/elif, for and [dostuff] > are indented) They're all indented by different amounts. I don't see anything that would cause the parser to tell you “unexpected indent”, though. For those reasons