[Tutor] Single char input

Ed Connell edwinconnell at gmail.com
Wed Oct 23 12:06:20 EDT 2019


Hi,
How can I accept, evaluate, and act on a single keypress in python?
Example:

Press A, B, or C

A. Do something

B. Do other thing

C. Skip to next section

Thanks.

Ed

-- 
I have a right and a left brain, but there is nothing right in the left one
and there is nothing left in the right one!


More information about the Tutor mailing list