Dennis Lee Bieber wrote:
> >     for i in range(0,len(param)):
> >     print a[i],
>
>       for it in param:
>               print it,

That's one way. However, if you need the position (this is for future
reference; you don't need the position number here):

for i in range(len(param)+1):
    print a[i],

The last position was excluded because you forgot the '+1' part,
creating an off-by-one bug.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to