Question: Given the following code. How is the name being displayed from the print command with 'contact' when the string was assigned the name 'new_contact' from

Given the following code. How is the name being displayed from the print command with 'contact' when the string was assigned the name 'new_contact' from the command new_contact = input()

contact_emails = {

'Sue Reyn' : '..n@email.com',

'Mike Filt': '..t@bmail.com',

'Nate Arty': '..2@nmail.com'

}

new_contact = input()

new_email = input()

contact_emails[new_contact] = new_email

for contact in contact_emails:

print(contact_emails[contact]+ ' is ' + 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!