creating a code with two list

Nick Zarr jacktradespublic at gmail.com
Tue Oct 11 09:49:25 EDT 2011


>
> liste = []
>
> a = 0
>
>
>
> while a<999 :
>
> a+=1
>
> liste.append(a)
>
>
I'm not sure I understand what you're trying to do here, but I don't have
much time to answer right now.  I just want to say there's an easier way to
build a list of consecutive integers: range(1, n+1)

>>> range(1, 1000)
[1, 2, ..., 999]

-- 
Nick Zarczynski <http://rentageekit.com>
Blog 4 <http://nickzarr.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111011/0d7bdc17/attachment-0001.html>


More information about the Python-list mailing list