Computer Science, asked by shaziasadat99, 5 months ago

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 nnb3791
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