def getitem(iterable, index, default=None):
    """Get item from an `iterable` at `index`, return default if index out of range."""
    try               : return iterable[index]
    except IndexError : return default