Hello, Please help with the following question. Thank you. Module 2… Hello,Please help with the following question.Thank you.Module 2 Required Coding ActivityIntroduction to Python (Unit 2) FundamentalsBe sure to complete all tutorials and practice prior to attempting this activity.Important Assignment RequirementsNOTE:This program requires creating a function usingdefandreturn, usingprintoutput,input,if,inkeywords,.append(),.pop(),.remove()list methods. As well as other standard PythonProgram: list-o-maticThis program takes string input and checks if that string is in a list of stringsif string is in the list it removes the first instance from listif string is not in the list the input gets appended to the listif the string is empty then the last item is popped from the listif thelist becomes emptythe program endsif the user enters “quit” then the program endsprogram has 2 partsprogram flowwhich can be modified to ask for a specific type of item. This is the programmers choice. Add a list of fish, trees, books, movies, songs…. your choice.list-o-maticFunction which takes arguments of a string and a list. The function modifies the list and returns a message as seen below.[ ]initialize a list with several strings at the beginning of the program flow and follow the flow chart and output examplesexample input/outputlook at all the animals [‘cat’, ‘goat’, ‘cat’]enter the name of an animal: horse1 instance of horse appended to listlook at all the animals [‘cat’, ‘goat’, ‘cat’, ‘horse’]enter the name of an animal: cat1 instance of cat removed from listlook at all the animals [‘goat’, ‘cat’, ‘horse’]enter the name of an animal: cat1 instance of cat removed from listlook at all the animals [‘goat’, ‘horse’]enter the name of an animal: (<-- entered empty string)horse popped from listlook at all the animals ['goat']enter the name of an animal: (<-- entered empty string)goat popped from listGoodbye!example 2look at all the animals ['cat', 'goat', 'cat']enter the name of an animal: QuitGoodbye!In[3]:# [] create list-o-matic# [] copy and paste in edX assignment page??Computer ScienceEngineering & TechnologyPython Programming HMI 7540

Order your essay today and save 20% with the discount code ESSAYHELP