def _silent_get(x, i):
    """
    Given a list x and an index i, returns the element from the list
    at index i if i is valid. Otherwise, return empty string - ''.
    >>> _silent_get([1,2,3,4], 2)
    3
    >>> _silent_get([1,2,3,4], 5)
    ''
    """
    if i < len(x):
        return x[i]
    else:
        return ''