Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started