Computer Science, asked by aditi63221, 8 months ago

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.

Answers

Answered by Luci05
46

Answer:

Explanation:

def email_list(domains):

emails = []

for domain, users in domains.items():

  for user in users:

   emails.append(user+'@'+domain)

return(emails)

print(email_list({"gmail.com": ["clark.kent", "diana.prince", "peter.parker"], "yahoo.com": ["barbara.gordon", "jean.grey"], "hotmail.com": ["bruce.wayne"]}))

Answered by gokulganesh11
0

Answer:

email_list={"gmail.com": ["clark.kent", "diana.prince", "peter.parker"], "yahoo.com": ["barbara.gordon", "jean.grey"], "hotmail.com": ["bruce.wayne"]}

for item,time in email_list.items():

   for times in time :

       r=times+"@"+item

       print(r)

Explanation:

Similar questions