| |
| | [Tutor] creating a list of data . . . (Site not responding. Last check: 2007-10-19) |
 | | Scott Widney wrote: >>>>frug = (frug, rug) >>> > > Keep in mind that Python only requires parentheses around a tuple in cases > where not doing so could be misinterpreted. |
 | | Look at the new value of frug: > >>>>frug >>> > ((1, 2, 3, 4), (5, 6, 7, 8, 9)) What makes this even worse is that the O.P. spoke of having 14 data elements that should end up in this tuple. |
 | | >>> frug (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) >>> Note that I had to make n into a one-element tuple before I could add it to the existing tuple, because sequences can only be added to other sequences of similar type. |
| mail.python.org /pipermail/tutor/2003-August/024955.html (307 words) |
|