a quickie: range - x

rjtucke rjtucke at gmail.com
Thu Nov 30 04:42:16 CET 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