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
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
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
Math,
4 months ago
Biology,
4 months ago
Accountancy,
4 months ago
Chemistry,
8 months ago
History,
11 months ago