The following is Python code that I typed:
import builtins
try:
a = input("Enter name :- ")
if (a=='Joey'):
print("Yeah right ?!?")
print("How come")
else:
print("No Problem")
except IndentationError as i:
print("Error : {0}".format(i))
Instead of handling the exception and printing the error message, I get an "Unexpected indent" error message.
Why is this happening?
Thanks in advance.