TOPIC

Run Time Error ?

João Victor Lacerda asked 9 months ago

from collections import Counter

while True:

    n = int(input())
    if n == 0:
        break

    lst = input().split()
    lst = Counter(lst)
    a = []

    for k, v in lst.items():

        if v % 2 == 1:
            a.append(int(k))

    a.sort()
    print('{} {}'.format(a[0], a[1]))

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.