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