Sci_Nada

Last solved
9 years, 10 months
Member for
10 years, 1 month
Time zone
Asia: Beirut

s='We tried list and we tried dicts also we tried Zen'

word_count={} s=s.split(' ') for word in s: word_count[word]=s.count(word)

for key, value in word_count.items(): print key,value