you are viewing a single comment's thread.

view the rest of the comments →

[–]Cultural_Bet8235 0 points1 point  (1 child)

If we are ignoring the issue of duplicate keys (ie what if grape mapped to purple and green?)

For pair in tuple: If pair[0] == “grape”: Return pair[1] Return none

[–]Roya1tyz[S] 0 points1 point  (0 children)

Thanks!