How To Make A Certein Key Exit My Program

September 27, 2012 at 09:09:02
Specs: Ubuntu12.04 Windows7
Hello! I have the code:

input('\n\nPress the Enter Key to exit')

And can anyone tell me how to change it to the escape key?

( MY program is an english to Pig Latin translator, so when entering a word you need to press enter ~ but that quits the program! )

See More: How To Make A Certein Key Exit My Program

Report •

September 27, 2012 at 11:46:03
Chances are good you never implemented anything to prevent the program from ending. Look into loops.

How To Ask Questions The Smart Way

Report •

September 28, 2012 at 14:56:53
Not as knowledgeable as Razor2.3

came across this a couple of months ago when I was looking into Python.

:: mike

Report •

Related Solutions

Ask Question