How to solve indentation error in python?
Today i am in mood to discuss the common indentation error in python code. We frequently get the indentation errors such as:
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unexpected indent
To solve this very easily just type the following code in the command line:
python -m tabnanny yourfilename.py
Instead of yourfilename.py use your own python file name. This command will suggest the line where the indentation is not correct.
This is such easy way that you dont need python beautifier.
Hope this helps!! Thanks for your upcoming feedbacks.
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!