A program that reads a list of words. then, the program outputs those words and their frequencies is given below:
line = input ( )
norm = line . split ( )
low = line . lower ( ) . split ( )
for chr in low :
freq = low . count ( chr )
print ( freq )
for x in norm:
print ( x )
1
2
2
2
2
hey
Hi
Mark
hi
mark
There are other ways to write a program that does this same function and they are given below:
1. for word, word_lower in zip ( norm, low ):
print ( word, low. count (word _ lower ) )
2. wordInput = input ( )
myList = wordInput . split ( " ")
for i in myList :
print ( i , myList . count ( i ) )
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1