We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
# Enter your code here. Read input from STDIN. Print output to STDOUTtotal_num_stamps=int(input())distinct_stamps=set()foriinrange(total_num_stamps):countries=input()# print(countries)distinct_stamps.add(countries)print(len(distinct_stamps))
Cookie support is required to access HackerRank
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 →
Hello,
Here's my code, I hope it helps!