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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?