[Tutor] Tuple: Am I Understanding This Correctly?
Homme, James
james.homme at highmark.com
Wed Dec 14 16:48:29 CET 2011
Hi,
My learning style likes a lot of words in plain English. Here is some code. Am I explaining how this works correctly?
# Make a tuple to simplify putting in the prompts below.
# This makes it so that you don't have to type out the whole thing every time you want to use these strings.
# The variables were defined above.
finish = (user_name, prompt)
likes = raw_input("Do you like me %s?\n%s" % finish)
# Use the tuple repeatedly when asking other questions.
Thanks.
Jim
Jim Homme,
Usability Services,
Phone: 412-544-1810.
________________________________
This e-mail and any attachments to it are confidential and are intended solely for use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this e-mail without the author's prior permission. The views expressed in this e-mail message do not necessarily represent the views of Highmark Inc., its subsidiaries, or affiliates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111214/d54640fd/attachment.html>
More information about the Tutor
mailing list