Best way to wait for string input

K

kevinliu23

Hi guys,

Python newbie here for some expert help. So basically I want to design
a menu system that waits for a string input. I'm not sure what the
best way of going about this is. The current system waits for a single
character input using msvcrt.kbhit( ) and msvcrt.getch( ). Is there
something equivalent to wait for string inputs?
 
M

Marc 'BlackJack' Rintsch

kevinliu23 said:
Python newbie here for some expert help. So basically I want to design
a menu system that waits for a string input. I'm not sure what the
best way of going about this is. The current system waits for a single
character input using msvcrt.kbhit( ) and msvcrt.getch( ). Is there
something equivalent to wait for string inputs?

The builtin `raw_input()`?

Ciao,
Marc 'BlackJack' Rintsch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top