>
> It was acknowledged that "OP's problem doesn't need this" so I assume
> the question was to think about it more generally somehow.
>
While we're on wild tangents...
We should probably note, since it hasn't been mentioned yet, that the
generalized problem with arbitrary coin choices is classi
On 1 February 2016 at 13:29, Steven D'Aprano wrote:
>> > although OP's problem doesn't need this, is there a better way achieve
>> > this other than
>> > using a balanced binary search tree.
>>
>> You would need to state all of the requirements for your data
>> structure. If coinvalues is constant
On Mon, Feb 01, 2016 at 12:47:02PM +, Oscar Benjamin wrote:
> On 31 January 2016 at 05:50, srinivas devaki
> wrote:
> > On Sun, Jan 31, 2016 at 3:54 AM, Danny Yoo wrote:
> >> ---
> >> I want to take the max value in the dictionary 'coinvalues' that is the
> >> same as or lower than the vari
On 31 January 2016 at 05:50, srinivas devaki wrote:
> On Sun, Jan 31, 2016 at 3:54 AM, Danny Yoo wrote:
>> ---
>> 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' dict
On Sun, Jan 31, 2016 at 3:54 AM, Danny Yoo wrote:
> ---
> 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 ex
On Sat, Jan 30, 2016 at 02:28:50PM +, Lawrence Lorenzo wrote:
> #The user enters a cost and then the amount of money given. You should
> #write a program that works out what denominations of change should be
> #given in pounds, 50p, 20p, 10p etc.#to do this the programme needs to
> #divide
On Jan 30, 2016 12:22 PM, "Lawrence Lorenzo"
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
>
> Do you already know how to trailer the maximum or minimum of a list of
numbers?
Apologies. Substitute the word "trailer" with "take". I didn't check the
output of the spelling checker as carefully as I should have.
___
Tutor maillist - Tutor@pyth
The problem I am facing is commented in the code. Thanks for any help in
advance.===#15
Change Return Program
#The user enters a cost and then the amount of money given. You should write a