Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def bmi_calculator(name, height_m, weight_kg):
bmi = weight_kg / (height_m ** 2)
print("bmi: ")
print(bmi)
if bmi < 25:
return name + " is not overweight"
else:
return name + " is overweight"
@fsj-digital

This comment has been minimized.

Copy link

@fsj-digital fsj-digital commented Feb 3, 2021

this does not give back any thing

@Mahmood-Hussain

This comment has been minimized.

Copy link
Owner Author

@Mahmood-Hussain Mahmood-Hussain commented Feb 3, 2021

this does not give back any thing
you need to call this function like this

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment