Arithmetic sequences in Python
Paul Rubin
http
Mon Jan 16 17:32:03 EST 2006
"Gregory Petrosyan" <gregory.petrosyan at gmail.com> writes:
> 1) both in [5,6,10] and [5,7,10] 10 is included ;-)
> And as for [5,6 .. 10] and [5,7 .. 10]... First one should look
> like [5 .. 10] I think. But you are right:
> it looks like a problem that in one case 10 is included and in
> other not. I should think about it.
[5,7 .. 10] means [5,7,9,11,13,15, ... ] limited to x<=10, so that
means [5,7,9]. 10 is not included.
More information about the Python-list
mailing list