def finding(a,b):
try:
result=a+b
return result
except TypeError:
return "please type only num"
finally:
return "this line will get print at last"
print(finding (5, 2))
I'm getting the output from the finally,
but I'm not getting the output from the try.
Change your last two returns to print statements: