This preview shows page 1. Sign up to view the full content.
Unformatted text preview: e , a function of the type returned by get_value_key k y and a list of tuples containing
information on r t r m n _ o s s where the first value is a string the name of the house, the
second is the annual rent on it, and the third is the number of battleship opponents the home hosts.
Returns the name of the retirement home which provides the best value and which is affordable. Note
that the key may not have come from get_value_key, and might not be linear.
Note that the school solution demo receives a value instead of a function in the 2ns parameter. Your
code is supposed to work like this:
choose_retirement_home_opponents(budget,f2,retirement_houses) Editing the definitions of functions.
In few assignments you have arguments that receive a default value You should edit the function
definitions in the template file such that they will specify the requested default values. Do not change
anything else in the definition. example
template: def get_v...
View Full Document
This document was uploaded on 03/20/2014 for the course CMSC 67101 at Hebrew University of Jerusalem.
- Spring '14