You are viewing a single comment's thread. Return to all comments →
N=int(input()) country_name={} country_name=set(country_name) for i in range(N): j=input() # print(j) country_name.add(j)
print(len(country_name))
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_name={} country_name=set(country_name) for i in range(N): j=input() # print(j) country_name.add(j)
print(country_name)
print(len(country_name))