Set .add()

  • + 0 comments

    user_input = int(input())

    countries_stamps = set()

    for i in range(user_input): country = input().strip() countries_stamps.add(country)

    print(len(countries_stamps))