why 'double tuple' when using %s with print?
Suchandra Thapa
ssthapa at harper.uchicago.edu
Fri Nov 10 03:38:20 EST 2000
Vetle Roeim <vr at acm.org> wrote:
>them is used in the print-statement.
>
>instead, write:
>
>>>> print "my tuple is %d %d" % t
>my tuple is 1 2
>>>>
Alternatively print "... %s" % repr(t) works.
--
------------------------------------------------------------------
|
Suchandra Thapa | "There are only two kinds of math books.
s-thapaNO at SPAMuchicago.edu | Those you cannot read beyond the first
| sentence, and those you cannot read
| beyond the first page."
| -C.N. Yang
------------------------------------------------------------------
More information about the Python-list
mailing list