def run_test_first_is_elsewhere_too():
    ' Tests the    first_is_elsewhere_too    function. '
    print()
    print('-------------------------------------')
    print('Testing the   FIRST_IS_ELSEWHERE_TOO   function:')
    print('-------------------------------------')
    message = {True: 'Your code PASSED this test.\n', False: 'Your code FAILED this test.\n'}
    no_failures = True
    expected = True
    answer = first_is_elsewhere_too([(3, 1, 4), (13, 10, 11, 7, 10), [11, 12, 3, 10]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([(3, 1, 4), (13, 10, 11, 7, 10), [11, 2, 13, 14]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([[], [1, 2], [1, 2]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([('a', 9), (13, 10, 11, 7, 'a'), [11, 12, 3, 10]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([('a', 9), (13, 10, 11, 7, 'aa'), [11, 12, 3, 10]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([('a', 'a', 'b', 'b', 'a', 'b')])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([()])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too(['a', (), (), (), 'a'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too(['a', (), (), (), 'a', ()])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too(['a', (), (), (), 'b', ()])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too(['hello', 'goodbye'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too(['hello', 'xxxxxxxxxxx'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too(['1234567890', 'one two three', 'i am free', 'four five six', 'get my sticks', 'seven eight nine', 'i am fine'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'a') + 'b') + (500 * 'a')), (((800 * 'c') + 'd') + (1200 * 'c')), 'b'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'a') + 'b') + (500 * 'a')), (((800 * 'c') + 'd') + (1200 * 'c')), (((700 * 'eee') + 'b') + (90 * 'd')), (((800 * 'c') + 'd') + (1200 * 'c'))])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'b') + 'acd') + (500 * 'f')), ((800 * '1') + '234a'), 'eeee'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'b') + 'acd') + (500 * 'f')), (('a' + (800 * '1')) + '234'), '123'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    test1 = [(((1000 * 'b') + 'acd') + (500 * 'f')), ((800 * '1') + '234'), '123']
    for k in range(95):
        test1.append((k * chr(k)))
    test2 = []
    for k in range(30):
        test2.append((k * chr(k)))
    expected = True
    answer = first_is_elsewhere_too(((test1 + ['a']) + test2))
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too((test1 + test2))
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    a_inside = (((100 * 'b') + 'a') + (100 * 'b'))
    answer = first_is_elsewhere_too(((test1 + [a_inside]) + test2))
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    if no_failures:
        print('*** Your code PASSED all')
    else:
        print('!!! Your code FAILED some')
    print('    of the tests for first_is_elsewhere_too')
Tests the    first_is_elsewhere_too    function.
def run_test_first_is_elsewhere_too():
    '  '
    print()
    print('-------------------------------------')
    print('Testing the   FIRST_IS_ELSEWHERE_TOO   function:')
    print('-------------------------------------')
    message = {True: 'Your code PASSED this test.\n', False: 'Your code FAILED this test.\n'}
    no_failures = True
    expected = True
    answer = first_is_elsewhere_too([(3, 1, 4), (13, 10, 11, 7, 10), [11, 12, 3, 10]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([(3, 1, 4), (13, 10, 11, 7, 10), [11, 2, 13, 14]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([[], [1, 2], [1, 2]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([('a', 9), (13, 10, 11, 7, 'a'), [11, 12, 3, 10]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([('a', 9), (13, 10, 11, 7, 'aa'), [11, 12, 3, 10]])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([('a', 'a', 'b', 'b', 'a', 'b')])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too([()])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too(['a', (), (), (), 'a'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too(['a', (), (), (), 'a', ()])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too(['a', (), (), (), 'b', ()])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too(['hello', 'goodbye'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too(['hello', 'xxxxxxxxxxx'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too(['1234567890', 'one two three', 'i am free', 'four five six', 'get my sticks', 'seven eight nine', 'i am fine'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'a') + 'b') + (500 * 'a')), (((800 * 'c') + 'd') + (1200 * 'c')), 'b'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'a') + 'b') + (500 * 'a')), (((800 * 'c') + 'd') + (1200 * 'c')), (((700 * 'eee') + 'b') + (90 * 'd')), (((800 * 'c') + 'd') + (1200 * 'c'))])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'b') + 'acd') + (500 * 'f')), ((800 * '1') + '234a'), 'eeee'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    answer = first_is_elsewhere_too([(((1000 * 'b') + 'acd') + (500 * 'f')), (('a' + (800 * '1')) + '234'), '123'])
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    test1 = [(((1000 * 'b') + 'acd') + (500 * 'f')), ((800 * '1') + '234'), '123']
    for k in range(95):
        test1.append((k * chr(k)))
    test2 = []
    for k in range(30):
        test2.append((k * chr(k)))
    expected = True
    answer = first_is_elsewhere_too(((test1 + ['a']) + test2))
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = False
    answer = first_is_elsewhere_too((test1 + test2))
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    expected = True
    a_inside = (((100 * 'b') + 'a') + (100 * 'b'))
    answer = first_is_elsewhere_too(((test1 + [a_inside]) + test2))
    print('Expected and actual are:', expected, answer)
    print(message[(answer == expected)])
    no_failures = (no_failures and (answer == expected))
    if no_failures:
        print('*** Your code PASSED all')
    else:
        print('!!! Your code FAILED some')
    print('    of the tests for first_is_elsewhere_too')