On Thu, 28 Jan 2010 13:37:28 +0100
Alan Plum <alan.p...@uni-koeln.de> wrote:

> You mean like this?
> 
> >>> m = 20
> >>> n = 30
> >>> a = xrange(m, n)
> >>> a  
> xrange(20, 30)
> >>> a[0]  
> 20
> >>> a[-1]  
> 29

!!! Did not even think at that (looked for attributes of xrange instances).
Thank you.

Denis
________________________________

la vita e estrany

http://spir.wikidot.com/
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to