On Jan 30, 2016 12:22 PM, "Lawrence Lorenzo" <mcshiz...@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?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to