def get(values, index, fallback):
    """
    Gets the specified index value from the list, or the fallback value if
    index is out of bounds
    """
    if index < len(values):
        return values[index]
    return fallback