[Tutor] Linear programming - is it bad?

Alan Gauld alan.gauld at blueyonder.co.uk
Tue Aug 10 12:54:38 CEST 2004

> You can use getch() as well which just pulls the current
> keyboard state, that avoids the need for hitting enter.
> But because its instantaneous you need to put it in a loop:
> key = getch()
> while not key:
>   key = getch()

And I should have pointedout that getch() lives in the 
msvcrt module for Windows and in the curses module for Linux.

Alan G

More information about the Tutor mailing list