15. What will be the output of
the following code snippet? a=
{("mango","apple"): "mango",
("apple","banana"): "apple"}
print(a["mango", "apple"]) *
Answers
Answered by
0
Answer:
mango
Explanation:
It's a MAP, which is having key:value pair.
for map a, here u have 2 pair,
1. ("mango","apple"): "mango"
2. "apple","banana"): "apple"
where u r looking to print the a["mango", "apple"], which will give the output of ("mango", "apple") key-value, which is mango.
Similar questions
Computer Science,
2 months ago
Math,
2 months ago
Math,
2 months ago
Math,
5 months ago
Math,
5 months ago
CBSE BOARD X,
11 months ago
Social Sciences,
11 months ago