MENU
Question -

Find errors from the following codes:
c=dict( )
n=input(Enter total number) i=l
while i<=n
a=raw_input(“enter place”)
b=raw_input(” enter number”)
c(a)=b
i=i+l
print “place”,”\t”/’number”
for i in c:
print i,”\t”,cla[i]



Answer -

c=dict()
n=input(“Enter total number” )
i=l
while i<=n:
a=raw_input(“enter place”)
b=raw_input(“enter number”)
c[a]=b
i=i+l
print “place”,”\t”/”number”
for i in c:
print i.”\t”.c[il

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×