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.
- Prepare
- Python
- Sets
- Set .add()
- Discussions
Set .add()
Set .add()
Sort by
recency
|
949 Discussions
|
Please Login in order to post a comment
user_input = int(input())
countries_stamps = set()
for i in range(user_input): country = input().strip() countries_stamps.add(country)
print(len(countries_stamps))
a=int(input()) s=set(input() for i in range (a)) print(len(s))
country = set() for i in range(int(input())): country.add(input()) print(len(country))