QUESTION #1 [8 pts]: Suppose you have two dictionaries, d1 a…
QUESTION #1 : Suppose you have two dictionaries, d1 and d2, each key is integer. In d1, values may be of any type (e.g., a fruit name, a number, etc.), while in d2, values are always integers representing counts. Write a single list comprehension named result that: Iterates only over keys present in both d1 and d2. Includes only those keys k for which d1 is a string (a fruit name) and d2 is an odd integer. For each such key, produces a string of the form: “k.fruit: count ” Example: >>> d1 = { 1 : “apple” , 2 : 100 , 3 : “banana” , 4 : None , 5 : “cherry ”} >>> d2 = { 1 : 5 , 2 : 10 , 3 : 15 , 4 : 20 , 5 : 25} >>> r e s u l t = >>> r e s u l t