[Tutor] (no subject)

Richard Hultgren hultgren1946 at yahoo.com
Sat Dec 19 13:34:01 CET 2009


Hello,     
    I am a newcomer, I guess I'm have trouble thinking like a computer yet. My question is:
in this program: 
>>> resp = raw_input("What's your name? ")

>>> print "Hi, %s, nice to meet you" % resp 
    
    does %s mean 'place the user response here' and secondly what and why do I put % resp at the end of the print statement? I know this is very basic and future questiions will be more interesting I hope.
                                                    Richard H.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091219/031f49f5/attachment.htm>


More information about the Tutor mailing list