+ 1

I tried to write the code for the simple calculator. when i run it through idle it works. but when i execute it it closes immediately after typing an option. how to fix it?

17th Jul 2016, 6:37 PM
Jeryl Toquero
Jeryl Toquero - avatar
3 Respostas
+ 2
Share the code and let's see what's the problem.
17th Jul 2016, 7:02 PM
Francisco Gómez García
Francisco Gómez García - avatar
+ 2
if you execute it by double clicking, then python interpreter considers it's job done as soon as it gets to the last line of your program so you could add something like: input("Press Enter to exit") to block it. if you don't execute it by double clicking, then we will need to see the code.
17th Jul 2016, 7:08 PM
RedAnt
RedAnt - avatar
0
let's see the code jeryl.
22nd Jul 2016, 12:48 PM
krippledhick
krippledhick - avatar