Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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