[Tutor] Finding the max value from a dictionary that does not exceed a variable's value.
Danny Yoo
dyoo at hashcollision.org
Sat Jan 30 17:24:17 EST 2016
On Jan 30, 2016 12:22 PM, "Lawrence Lorenzo" <mcshizney at hotmail.co.uk>
wrote:
>
> The problem I am facing is commented in the code.
Let me cut out the code, as frankly it's a *huge* distraction from your
question. Here is the question you are asking:
---
I want to take the max value in the dictionary 'coinvalues' that is the
same as or lower than the variable 'change'. I have no idea how to search
through the 'coinvalues' dictionary and find the value that is highest but
does not exceed the value held in the variable 'change'.
---
Do you already know how to trailer the maximum or minimum of a list of
numbers?
More information about the Tutor
mailing list