Advertisements
Advertisements
प्रश्न
Predict the output of the following code:
d = {"apple": 15, "banana": 7, "cherry": 9}
str1 = ""
for key in d:
str1 = str1 + str(d[key]) + "@" + “\n”
str2 = str1[:-1]
print(str2)
लघु उत्तरीय
उत्तर
15@
7@
9
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?