Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I keep getting an error but I am not sure what I am doing wrong. Thank you! It says to write a for loop to
I keep getting an error but I am not sure what I am doing wrong. Thank you!
It says to write a for loop to print each contact in contact_emails.
Sample output with inputs: 'Alf' 'alfsemail'
mikesemail is Mike Filt
suesemail is Sue Reyn
natesemail is Nate Arty
alfsemail is Al
contact_emails = {
'Sue Reyn' : 'suesemail',
'Mike Filt': 'mikesmeail',
'Nate Arty': 'natesemail'
}
new_contact = input()
new_email = input()
contact_emails[new_contact] = new_email
for new_contact in new_email:
print(new_email, 'is', new_contact, ' ')
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