s = ('con', 'str', 'wit', 'int', 'dex', 'mp', 'p.def', 'm.def', 'p.atack', 'm.atack')
c.execute("SELECT con, str, wit, _int, dex, mp, mdef, pdef, patack, matack FROM warrior_stat")
t = c.fetchone()[:]
for s1, t1 in s, t: print "%020s, " - ", %010s, '\n'" % (s, t)
Why do I have this error:
Traceback (most recent call last):
File "./test.py", line 49, in <module>
for s1, t1 in s, t: print "%020s, " - ", %010s, '\n'" % (s, t)
ValueError: too many values to unpack
How can I fix it?
thanks for all comments !!! i am printing %(s, t) instead (s1, t1) and zip(s, t) worked correctly after this corection
dont make +1 into reputation. but my reputation is low