To solve IndentationError: unexpected unindent error follow below methods. Given below the error log corresponding to it.
ERROR LOG
IndentationError: unexpected unindent
Contents
How to solve IndentationError: unexpected unindent ?
Refer to the given methods to solve the issue.
It happens when you use a try:
block without a matching except block
after it. Every attempt must contain at least one matching except
. If you are using try then you should use at least one except. Try this :
try :
#statements
except:
#statements
Hope the above solution works.
Also read : IndentationError: unexpected unindent