Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!