Write a Python program to create a simple phone dictionary with names and phone numbers of 7 persons and print it.
Answers
Answered by
2
Answer:
n=int(input("Input a number "))
d = dict()
for x in range(1,n+1):
d[x]=x*x
print(d)
PLZ MARK BRAINLIEST , FOLLOW ME AND THX FOR UR SUPERB QUESTION
Answered by
1
names = ["Aadhya", "Bhavna", "Chhaya", "Dhriti", "Eshika", "Falak", "Hiral"]
numbers = [int(str(n) * 10) for n in range(1, 8)]
phone_dict = dict(zip(names, numbers))
print(phone_dict)
Similar questions