Commit 793f928c by BellCodeEditor

auto save

parent a7421ac2
Showing with 10 additions and 0 deletions
string='to be or not to be that is a question'
list=string.split(" ")
str1={}
for i in list:
if i not in str1:
str1[i]=1
else:
str1[i]=str1[i]+1
print(str1)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment