Set .add()

  • + 0 comments
    n_country = int(input())
    country_list = set()
    total_input = 0
    while total_input < n_country:
        x = str(input())
        country_list.add(x)
        total_input += 1
    
    print(len(country_list))