I have a list of items:
items = [a, b, c, d]
I need it to be so that if I say items[4]
which isn't in the list, the returned element should be the first element only, which is a
, like a loop, instead of a IndexError: index out of range
error.