Skip to content

Instantly share code, notes, and snippets.

@dhilst
Created August 5, 2019 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhilst/6a5dbc4c02169cbc42622c02000a1b2e to your computer and use it in GitHub Desktop.
Save dhilst/6a5dbc4c02169cbc42622c02000a1b2e to your computer and use it in GitHub Desktop.
activity_level = [None, 1.2, 1.375, 1.55, 1.725, 1.9]
...
if gender == 'male':
bmr = (66 + (6.3*int(weight)) + (12.9*int(height)) - (6.8*int(age)))
calorie = bmr * ativity_levels[activity_level]
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment