reading empty input
Janos Blazi
jblazi at hotmail.com
Wed Apr 18 05:06:12 EDT 2001
I'd like to write something like this:
a=-1
while a!="empty":
a=input()
if "a!=empty": <commands>
this is pseucode of course. The while loop should run until the user
responds to the input prompt by the enter key (and no real input)
How can I do this? Have I to use raw_input?
Janos Blazi
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
More information about the Python-list
mailing list