[Tutor] %(value1, value2) what does this returns

vishwajeet singh dextrous85 at gmail.com
Tue Jul 22 20:56:30 CEST 2008


thanks to all of you for your responses;

On Wed, Jul 23, 2008 at 12:18 AM, Michiel Overtoom <motoom at xs4all.nl> wrote:

> Vishwajeet wrote...
>
> > I want to know in this % (symbol, stat) returns
>
> In itself it returns nothing.  The '%' is used as the 'string interpolation
> operator' here.
>
> http://docs.python.org/lib/typesseq-strings.html
>
> >>> print "%d kilos of %s for %f euro" % (2,"mangos",3.75)
> 2 kilos of mangos for 3.750000 euro
>
> Greetings,
>
> --
> "The ability of the OSS process to collect and harness
> the collective IQ of thousands of individuals across
> the Internet is simply amazing." - Vinod Vallopillil
> http://www.catb.org/~esr/halloween/halloween4.html<http://www.catb.org/%7Eesr/halloween/halloween4.html>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080723/6543ee71/attachment.htm>


More information about the Tutor mailing list