anonymous
  • anonymous
there is always a problem in idle while using 'else'. it gives indentation error. please help
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Make sure you use tab to indent the IF and ELSE sections. I am assuming this is Python. You might have to paste your code snippet.
anonymous
  • anonymous
"unindent does not match any outer indentation level" this the t shows always, i have tried in different ways.
TuringTest
  • TuringTest
it should be like so if : else:

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
>>> x=35 >>> if x==35: print 'true' else: File "", line 3 else: ^ IndentationError: unindent does not match any outer indentation level
TuringTest
  • TuringTest
well, the way you copy-pasted it I can't tell how your indents are written, the >>> is throwing me off.
anonymous
  • anonymous
x=35 if x==35: print 'true' else: File "", line 3 else: ^ IndentationError: unindent does not match any outer indentation level
TuringTest
  • TuringTest
I hope you're not typing this directly into the shell. Open a new window with CTRL+N and type in your program, then run it with F5. If that doesn't work, copy paste that code here so we can see the indentation properly, the >>> from the shell is making it hard to see what you actually typed.
anonymous
  • anonymous
thank you so much. its is very helpful,and it is woking
TuringTest
  • TuringTest
glad that's all it was :)

Looking for something else?

Not the answer you are looking for? Search for more explanations.