Need a function. Any built-in function or module for this?

wcc wccppp at
Sun Oct 15 02:38:44 CEST 2006

Hello group,

I need to write a function to get input from user. The prompt will be
like this:
Specify direction[Left/Right/Up/Down] or <Left>:

And if user type "L" or <ENTER>, the function will return "Left", if
user type "R", the function will return "Right", etc..

My quick search in python reference did not yield valid result. Any

Thanks for your help.


More information about the Python-list mailing list