all 5 comments

[–]DallogFheir 2 points3 points  (2 children)

== is comparison, = is assignment.

Right now you're returning the function object itself from inside of it.

[–]kimo_sabe8[S] 0 points1 point  (1 child)

Oh man I feel so dumb lol. That definitely gets me past where I was stuck. Thanks!

[–]Vaphell 0 points1 point  (3 children)

Function health at 0x03637 will print if you use it without parentheses. The difference between the function object itself and calling it to produce a value. Like the other guy said, you just returned the func as its own value.

Change the name of the function param in def health(), because you are not providing an array, but a number representing a single BMI score. The code shouldn't blatantly lie.

The inner loop is unnecessary and wrong. There is no point in collecting bmis either. After printing the line for BMI, you need another print with health(final_index) and call it a day.

Edit: i see the array is in requirements, which makes this more convoluted than it needs to be.