Question: please fix this code. thank you Write a program that first reads in the name of an input file and then reads the file using


Write a program that first reads in the name of an input file and then reads the file using the csv reader0 method. The file contains a list of words separated by commas. The program must output the words and their frequencies (the number of times each word appears in the file) without any duplicates. Ex. If the input is: input 1+csv and the contents of inputi csv are: hello, cat, man, hey, dog, boy, Hello, man, cat, woman, dog, Cat, hey, boy the output is: hello 1 cat 2 man 2 hey 2 dog 2 boy 2 He1lo - 1 woman - 1 Cat 1 main.py Load default temp Output differs. See highlights below. Special character legend Input input 1csv hello 1 cat 2 man2 hey 2 Your output dog 2 boy 2 Hello 1 woman 1 Cat 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
