6. Example Given is Counterintuitive. (code is fine, example given is strange)


#1

Below is the example given on "6. Just Weight and See."
I just find it strange in the example given, that it talks about prices, something that we would want to be lower, then it says it likes apples more, then it weights the prices of the apples and bananas in a way that makes apples MORE expensive than bananas.

In other words, it says it likes apples more, but it weights them to make apples cost more and bananas cost less.

Again, I like apples so I am going to make bananas super cheap, that seems to me to be flip-flopped. We want cheap apples, but we make them cost more.

Below is copied from "6. Just Weight and See."

`cost = {
    "apples": [3.5, 2.4, 2.3],
    "bananas": [1.2, 1.8],
}

return 0.9 * average(cost["apples"]) + \
0.1 * average(cost["bananas"])


In the above example, we create a dictionary called cost that contains the costs of some fruit.Then, we calculate the average cost of apples and the average cost 
of bananas. Since we like apples much more than we like bananas, we 
weight the average cost of apples by 90% and the average cost of bananas
 by 10%.`

I apologize if what I am saying does not make sense, If you look at it from the actual page it may be more clear.
https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/2?curriculum_id=4f89dab3d788890003000096


#2

I know what you mean but, you have to remember that it is just an exercise, so yeah