def safe_get(lst, index, default=None):
    """
    An implementation of the similar :meth:`get` of the dictionary class.
    :param lst:     the list to perform the operation on
    :param index:   the index to query
    :param default: the default value if not found
    :return:        the result if exists or the default value
    """
    try:
        return lst[index]
    except IndexError:
        return default