You are viewing a single comment's thread. Return to all 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))
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 →