def short_repr(x):
    """
    This is the same as repr() except it limits the string to 35 characters.
    If the string is more than 35 characters long, this will print the first 16 and the last 16 characters separated by an ellipsis "...".

    ```
    >>> short_repr(list(range(1000))) == '[0, 1, 2, 3, 4, ..., 997, 998, 999]'
    True

    ```
    """
    s = repr(x)
    if s.startswith("u'") or s.startswith('u"'):
        s = s[1:]
    if len(s) <= 35:
        return s
    else:
        return s[:16]+'...'+s[-16:]