0% completed
from collections import Counter
fruit_count = Counter(['apple', 'orange', 'banana', 'apple', 'orange', 'apple'])
print(fruit_count['apple'])
from collections import defaultdict
dd = defaultdict(int)
dd['key1'] += 1
print(dd['key1'])
.....
.....
.....