# Compute the Average Instructions Misleading

#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

Why does your instructions refer to grades_input? Especially, when what you’re looking for is ‘grade’ as the argument. Too often your instructions are obtuse and misleading.

```python

grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]

total = 0
for score in scores:
total += score

#instead of grade_input like the instructions call for. GRRRRR
return average

``<do not remove the three backticks above>``

#2

That is meant as a local variable.

``````def grades_average(grades_input):
``````
``````print (grades_average(grades))
``````

Are you saying that the above would not be accepted?

Aside

It may be just me, but I prefer to leave counting numbers as what they are, integers. Cast the number that is more likely to be a float, which in this case is the numerator.

#3

Yours worked but mine wasn’t. Sadly I don’t have that code. This can be closed.

#4

It should have been,

``````def grades_average(grades_input):
``````

If we initialize `total` as a float we don’t need to worry about floats anywhere else.

``````total = 0.0

or

total = float(0)
``````

Then it’s just this,

``````def grades_average(grades_input):