After running this python code in Jupyter Notebook and type o :
p = input("type anything for detecting error:")
if p == "hi":
print(hellow)
else:
print('hi')
exit()
print(p)
it comes out following: type anything for detecting error:o hi o
Then the kernal dye,and notebook pumps out message: 'The kernel appears to have died. It will restart automatically.' It should not print o after i exit the program. enter image description here
and even I don't print anything after exit():
p = input("type anything for detecting error:")
if p == "hi":
print(hellow)
else:
print('hi')
exit()
p == "hi"
it still will pumps out the kernel is dead message. enter image description here
so I think I find bug of exit() function in jupyter notebook,right? Or it just exist in my computer? Can sb help me figure this out,plz.