#5 Program to count the occurrences of each word in a given string sen
str1=input("Enter a sentence:").split(" ")
st=list(set(str1))
for i in st:
 print("{}:{}".format(i,str1.count(i)))

2cee750d79efb499b306f0c9b41f5acf5db2fd13
<mask token>

<mask token>
for i in st:
    print('{}:{}'.format(i, str1.count(i)))

str1 = input('Enter a sentence:').split(' ')
st = list(set(str1))
for i in st:
    print('{}:{}'.format(i, str1.count(i)))

#5 Program to count the occurrences of each word in a given string sen
str1=input("Enter a sentence:").split(" ")
st=list(set(str1))
for i in st:
 print("{}:{}".format(i,str1.count(i)))
