USE python code to write a python function that returns a list of…

Question Answered step-by-step USE python code to write a python function that returns a list of… USE python code to write  a python function that returns a list of ‘Good’ or ‘Bad’ for each input string provided on the list below, however, it must past the following tests(1-4):List =[‘papa’, ‘paapaaa’, ‘Mama’, ‘eefffe’, ‘danda’, ‘paattaa’, ‘lala’, ‘eefefe’, ‘abdba’, ‘RoaaoR’, ‘Ululu’, ‘Ratatat’]1) it is ‘Good’ if the string is split in the middle, the two halves will have the same exact characters and frequency2) It is ‘Good’ if the number of characters is even, such as ‘papa’ and ‘mama’, there is an exact split and each half then it passes3) It is ‘Good’ if  the string has odd # of characters such as ‘pappa’ and ‘mamma’ it passes, since both mid p and m are omitted.4) strings like ‘lala’, ‘eegege’, ‘pqooqp’, ‘acdca’ also pass as ‘Good’ on the list: The desired output:GoodBad_List = [‘Good’, ‘Bad’, ‘Good’, ‘Bad’, ‘Good’, ‘Bad’, ‘Good’, ‘Good’, ‘Good’, ‘Good’, ‘Good’, ‘Bad’] Computer Science Engineering & Technology Python Programming Share QuestionEmailCopy link Comments (0)