Computer Science, asked by chandavirani4747, 4 months ago

Find errors in the following code:

i) d1=dict[]

i=1

n=input(“Enter number of entries:”)

while i<=n:

a=input(“Enter name:”)

b=input(“Enter age:”)

d1(a)=b

i=i+1

l=d1.key[]

for i in l:

print(i, ’\t’ , ’d1[i]’)​

Answers

Answered by greatsingh144
0

Answer:

Find errors in the following code:

i) d1=dict[]

i=1

n=input(“Enter number of entries:”)

while i<=n:

a=input(“Enter name:”)

b=input(“Enter age:”)

d1(a)=b

i=i+1

l=d1.key[]

for i in l:

Similar questions