Set .add()

  • + 0 comments
    n = int(input())
    stamps = [input() for i in range(n)]
    
    distinct_country = set()
    for i in stamps:
        distinct_country.add(i)
    
    print(len(distinct_country))