• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
208 views

Problem:

Write a for loop to print each contact in contact_emails. The expected output of program shoud be as following:

rabi.singh@bmail.com is Rabi Singh 

r.smith@email.com is Ray Smith  

nelly0212@nmail.com is Nelly Carter

by (720 points)  
edited by

1 Answer

0 votes

Solution:

Program:

contact_emails = {

'Ray Smith' : 'r.smith@email.com',

'Rabi Singh ': 'rabi.singh@bmail.com',

'Nelly Carter': 'nelly0212@nmail.com'

}

for email in contact_emails:

print('%s is %s' % (email, contact_emails(email)))

by (4k points)  
...