Set .add()

  • + 0 comments

    This is as simple as I could make it:

    N=int(input())
    countries=set([input() for _ in range(N)])
    print(len(countries))