Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
And also can do height ** 2, pow(height) <--- (for this you need importing pow from math or importing math)
well I wasnt sure that my reasoning was up there with the most praised code... nice =D
i did (height*height)
this is not the best practice. the elif is unnecessary thanks to the boundaries given by the return statements. the else statement is also unnecessary for the same reason. you can simply return the last value, because if the previous value is true, the code will return and the last statement won't execute
both
is this the most pythonic or only the best practice?
*2
is not the same as**2
I literally had this exact same code and it kept telling me that "Obese" should equal literally every one of them... :S
Right, I should have chosen a better name
Even though this is clearly not a recursive function, reusing the name bmi does not seem like best practices to me.