Peter Hansen wrote:
>Or just:
>
>if not 0 <= index < len(mylist):
> print 'index out of range'
Right. Which has the added advantage of not repeating index.
Or just, just:
if not index in len(mylist): # I know, I'm going around in circles
<wink>
Jim