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
Get step-by-step solutions from verified subject matter experts
