On Fri, 20 Aug 2010 06:27:01 pm nitin chandra wrote: > Thank you, Alan and Steven. > > Now i am facing some thing 'different' > > This is even when i have not done a carriage return to create line > "66". This is after i have done > fp1.close() > fp2.close() > fp3.close() > ****************************************************** > > File "mer5Pr2.py", line 66 > > ^ > IndentationError: unexpected unindent
Without seeing the actual code, it's hard to say. But you need to learn to read the error message: it says you have unexpectedly unindented (outdented). My guess is you've done something like this: if something: line indented with 4 spaces line indented with 2 spaces You need to indent consistently. Set your editor to always use 4 spaces for indents. If you can't do that, then get a better editor, or use a single tab instead of four spaces. Some people will say don't use tabs. I say phooey to them. It's better to use tabs than to have inconsistent indentation. -- Steven D'Aprano _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor