Write the output: D={}
D[1]=1
D['1']=2
D[1.0]=4
sum=0
for kin D:
sum+=D[k]
print(sum)
Share
Write the output: D={}
D[1]=1
D['1']=2
D[1.0]=4
sum=0
for kin D:
sum+=D[k]
print(sum)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
0 Replies