RAW_INPUT

jmdeschamps at gmail.com jmdeschamps at gmail.com
Mon Nov 7 12:35:18 EST 2005


The raw_input('Who Goes there?') function writes out the arg and then
waits for *user input* , and that is considered terminated when you hit
return.

Since you only hit return without typing 'Josh' first you get an empty
string "" which is then printed to screen... ('You may pass,'+"")

Type something and it will appear
NOTE: the string variable  (print "you may pass, %s" % s ) is uncalled
for...

Good luck!




More information about the Python-list mailing list