Computer Science, asked by ruanasri7, 3 months ago

Write a Python program to create a simple phone dictionary with names and phone numbers of 7 persons and print it.

Answers

Answered by Anonymous
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 jai696
1

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

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)

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions