[Tutor] get (x)range borders

spir denis.spir at free.fr
Thu Jan 28 14:32:10 CET 2010


On Thu, 28 Jan 2010 13:37:28 +0100
Alan Plum <alan.plum at 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/


More information about the Tutor mailing list