try:
x > 3
except:
print(“Something went wrong”)
else:
print(“Nothing went wrong”)
finally:
print(“The try…except block is finished”)
As we know “except” will run when error will be there in “try” statement.And when error will not there "else " will run.So this program should run except statement.But in Jupyter notebook it is running “else” statement instread of “except”.