Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions

Question

What are five dimensions of feasibility study?

Answered: 1 week ago