Let say I have a dictionary of total of fruits:
Fruits = {"apple":8, "banana":3, "lemon":5, "pineapple":2,}
And I want the output to be
["pineapple"]
because pineapple has the least value. Or if i have this:
Colour = {"blue":5, "green":2, "purple":6, "red":2}
The output will be:
["green","red"]
because green and red has both the least value.
So how do I return the smallest value in dictionary?