Write a for loop to print each contact in contact_emails.
Asked by wiki @ in Computers and Technology viewed by 233 People
Write a for loop to print each contact in contact_emails. Sample output for the given program:
[email protected] is Mike Filt
[email protected] is Sue Reyn
[email protected] is Nate Arty
Code:
contact_emails = {
'Sue Reyn' : '[email protected]',
'Mike Filt': '[email protected]',
'Nate Arty': '[email protected]'
}
for email in contact_emails:
print('%s is %s' % (email, contact_emails(email)))