Question: Hi, I have this problem in Python : The email_list function receives a dictionary, which contains domain names as keys, and a list of users
Hi, I have this problem in Python :
The email_list function receives a dictionary, which contains domain names as keys, and a list of users as values. Fill in the blanks to generate a list that contains complete email addresses (diana.prince@yahoo.com).
The code :
def email_list(domains): emails = [] for ___: for user in users: emails.___ return(emails)
print(email_list({"yahoo.com": ["clark.kent", "diana.prince", "peter.parker"], "yahoo.com": ["barbara.gordon", "jean.grey"], "hotmail.com": ["bruce.wayne"]}))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
