Why do greedy by value, cost and density pick different meals, and what does hill climbing reveal about their limits?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
A lambda takes a sequence of identifiers, a colon, then an expression whose value is returned. Using lambda (not def), build an anonymous function of two arguments, value and calories, that returns the value per calorie, and assign it to density.