Re: [Tutor] trying to figure out what this means

2007-05-08 Thread Alan Gauld
"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

Re: [Tutor] trying to figure out what this means

2007-05-07 Thread R. Alan Monroe
> 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)

Re: [Tutor] trying to figure out what this means

2007-05-07 Thread Rikard Bosnjakovic
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

[Tutor] trying to figure out what this means

2007-05-07 Thread Dave C
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