You are viewing a single comment's thread. Return to all comments →
N = int(input()) country_set = {} country_set = set(country_set)
for j in range(N): country = input() country_set.add(country)
print(len(country_set))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .add()
You are viewing a single comment's thread. Return to all comments →
N = int(input()) country_set = {} country_set = set(country_set)
for j in range(N): country = input() country_set.add(country)
print(len(country_set))