"Dave C" <[EMAIL PROTECTED]> wrote
> when you are doing print these two characters keep showing up in
> this book
> "%s" %
>
> What do they do?
Its called string formatting.
%s means insert a string(the s) here.
%d means insert a decimal number(the d) here
There are a whole bunch of other codes
> when you are doing print these two characters keep showing up in this book
> "%s" %
> What do they do?
"Fill in the blank"
Kind of like generic paper forms where they have a blank underline for
you to fill in your information.
Give it a variable name, and it will fill in the "blank" (the %s)
On 5/7/07, Dave C <[EMAIL PROTECTED]> wrote:
> when you are doing print these two characters keep showing up in this book
> "%s" %
>
> What do they do?
http://docs.python.org/lib/typesseq-strings.html
--
- Rikard - http://bos.hack.org/cv/
___
Tutor ma
when you are doing print these two characters keep showing up in this book
"%s" %
What do they do?
here is example of complete command.
print "%s" % last_names[-2]
Thank you,
Dave
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailma