This is an assessment based on Jeremiah Lant's Concept map for Python dictionaries.
fruit
was created as follows:<br />
fruit = {}<br />
fruit['pear'] = 2<br />
fruit['banana'] = 6<br />
fruit['ananas'] = 1<br />
for fruit in fruit
a
and b
, one of which (a
) you want to use as keys and the other (b
) as the values of a dictionary d
, always pairing up a key from a
with a value from b
. Implement at least two different ways of constructing d
.