
d = {} # created an empty dictionary
while True: # looping infinite times
name = input() # taking user input of the information of one
person
if name == "999": # if the name is 999, breaking the loop
break
email = input()
phone = input()
d[email] = [name, phone] # putting that data in the dictionay
print() # printing the data in the dictionary
for one in d:
print(d[one][0], one, d[one][1])
print("Total visitors:", len(d)) # printing the number of
visitors
# Please up vote or comment. Happy
Learning!
i d = {} # created an empty dictionary 3 - while True: # looping infinite times OOOO name = input() # taking user input of the information of one person if name == "999": # if the name is 999, breaking the loop break email = input phone = input) d[email] = [name, phone] # putting that data in the dictionay print() # printing the data in the dictionary 14- for one in d: print(d[one][C], one, d[one]1]) 16 print("Total visitors:", len(d)) # printing the number of visitors v Execute Mode, Version, Inputs & Arguments Execute Result CPU Time: 0.02 sec(s), Memory: 7636 kilobyte(s) executed in 2.173 Jane Duo janeduo@gmail.com 01234 John Mike mikey@hotmail.com 02934 Tim Grenaway timmy@live.com 1234 999 Jane Duo janeduo@gmail.com 01234 John Mike mikey@hotmail.com 02934 Tim Grenaway timmy@live.com 1234 Total visitors: 3