a quickie: range - x

rjtucke rjtucke at gmail.com
Wed Nov 29 22:42:16 EST 2006


I want an iterable from 0 to N except for element m (<=M).
I could write
x = range(N)
x.remove(m)
but I want it in one expression.

Thanks,
Ross




More information about the Python-list mailing list