{"id":126,"date":"2014-01-28T21:43:10","date_gmt":"2014-01-28T21:43:10","guid":{"rendered":"http:\/\/rat32.com\/rat32\/?p=126"},"modified":"2014-01-28T21:43:10","modified_gmt":"2014-01-28T21:43:10","slug":"how-to-solve-indentation-error-in-python","status":"publish","type":"post","link":"https:\/\/rat32.com\/rat32\/2014\/01\/28\/how-to-solve-indentation-error-in-python\/","title":{"rendered":"How to solve indentation error in python?"},"content":{"rendered":"<p>Hi guys,<\/p>\n<p>Today i am in mood to discuss the common indentation error in python code. We frequently get the indentation errors such as:<\/p>\n<ol>\n<li><strong>IndentationError: unindent does not match any outer indentation level<\/strong><\/li>\n<li><strong>IndentationError: unexpected indent<\/strong><\/li>\n<\/ol>\n<p>To solve this very easily just type the following code in the command line:<br \/>\n<br \/>\n<strong>python -m tabnanny yourfilename.py<\/strong><br \/>\n<br \/>\nInstead of yourfilename.py use your own python file name. This command will suggest the line where the indentation is not correct.<\/p>\n<p>This is such easy way that you dont need python beautifier.<\/p>\n<p>Hope this helps!! Thanks for your upcoming feedbacks.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Hi guys, 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:&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[49,47,46,48],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-how-to","category-python","tag-code-indentation-error","tag-indentation-error","tag-python-2","tag-python-beautifier"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/126"}],"collection":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":1,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/126\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}