1. a. The Daily Trumpet newspaper accepts classifiedadvertisements in 15 categories such as Apartments for Rent andPets for Sale. Develop the logic for a program that acceptsclassified advertising data, including category code (an integer 1through 15) and number of words in the ad. Store these values inparallel arrays. Then sort the arrays so that records are inascending order by category. The output lists each category, thenumber of ads in each category, and the total number of words inthe ads in each category. I need answer in python pls
Answer
OR
OR