I got the following error for my code. Can anyone help me pls.
code is as follows
def askforinteger():
while True:
try:
a = int(input("enter an integer")
except Exception as e :
print("there is a error of", e)
else:
print("person has entered correct input")
break
finally:
print("clsoe this issue")
Error is as follows
File "<ipython-input-5-234fd49c196d>", line 5
except Exception as e :
^
SyntaxError: invalid syntax