I need help writing a few functionsMy assignment involves analyzing a file (which has been linked). The specific assignment looks at crime data in a certain state, with regards to the different cities in the state1. The first part is to open and clean the file i.e eliminate unnecessary bits (commas, quotes, etc)2. The second part looks for the top ten most populated cities and the number of violent crimes and the top ten least populated cities and the amount of violent crimes3. The third part looks for the top 10 cities with the highest reported number of rape crimes4. The fourth part loops through each city and then ranks the crimes from highest amount reported to lowest5. The fifth part looks for the most reported crime for each cityThe exact specifics are linked in the word document