Type mismatchings and the rank newbie

Sean 'Shaleh' Perry shaleh at valinux.com
Fri Mar 16 23:49:27 CET 2001

> The loop is not a problem; I just can't figure how to stick a different
> number form the user input total, into the second place of the list name
> (  Pn=[x, y, z] where 'n' is the number stuck in there by the loop) with
> every iteration of the loop.
> The docs are confusing to me (I'm not a programmer and don't want to be, but
> there is no other way for me to do what I need to to see what this program
> will display for me).

from the pyunit examples:

    for i in range(10000):
        exec("def test%i(self): pass" % i)

More information about the Python-list mailing list