Please conduct a python program that fits all description below…

Question Answered step-by-step Please conduct a python program that fits all description below… Please conduct a python program that fits all description below Your friend has been getting a lot of emails, and wants to start keeping track of which email domains are most popular: gmail.com, ucsd.edu, or yahoo.com. They ask you to create a function that can do this for them. Your function should take in a list of email addresses of the form username@domain (as input parameter), and return a list of counts, where each index corresponds to the domains gmail.com, ucsd.edu, and yahoo.com. That is,The index zero (0) of the returned list contain the count of emails that have a domain of gmail.comThe index one (1) of the returned list contain the count of emails that have a domain of ucsd.eduThe index two (2) of the returned list contain the count of emails that have a domain of yahoo.comImage transcription textEXAMPLE 1 emails: [“ali@ucsd. edu”, “will@ucsd. edu”, “aaron@gmail.com”,”tabassum@ucsd. edu”, “amy@yahoo.com”, “joe@gmail.com”] return: [2, 3, 1]EXAMPLE 2 emails: [“gerald@ucsd. edu”, “mai@ucsd.edu”] return: [0, 2, 0] … Show more… Show moreHere is the problem description:Function Name: email_domainsParameter: emails – A list of strings which are emails of the form username@domain, and the domain is either gmail.com, ucsd.edu, or yahoo.comReturn: A list of 3 counts corresponding to the domains, where the order of counts is gmail.com (index 0), ucsd.edu (index 1), and yahoo.com (index 2).Description: Given an input list of emails, count the domain names (e.g., ucsd.edu) of those emails and return the list of the count of domain names as described above. After completing this function, write at least five test cases to check if your function is working as expected. Your five test cases should cover the following scenarios for the input parameters:Three emails: One gmail.com, one ucsd.edu, one yahoo.comTwo emails: One gmail.com, zero ucsd.edu, and one yahoo.comOne email: just ucsd.eduZero emails: empty listThree emails: all three are gmail.comYou should do your test cases in the format below.# A sample test case # input: a list with one gmail, two ucsd, and two yahoo emails # expected return: [1, 2, 2]      Computer Science Engineering & Technology Python Programming CSE 8a Share QuestionEmailCopy link Comments (0)