You are viewing a single comment's thread. Return to all comments →
country_size=int(input()) country_set=set() for _ in range(country_size): country_name=input() country_set.add(country_name) 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 →
country_size=int(input()) country_set=set() for _ in range(country_size): country_name=input() country_set.add(country_name) print(len(country_set))