bmrc calculator
# -*- coding: utf-8 -*-
#randomly generating exercises for confused people to help them lose wight
import random
class Exercise:
def week (self):
print(" 1-mon\n 2-tue\n 3-wed\n 4-thur\n 5-fri\n 6-sat\n 7-sun")
def exe (self):
list_exe=[ ]
c=5
for i in range(c):
d=input('enter exercises you cannot decide from = ')
list_exe.append(d)
print(list_exe)
b=random.choice(list_exe)
print( b)
a=random.randint(1, 7)
print(' The day you will do this exercise = ',a)
exercise= Exercise()
print(exercise.week())
print(exercise.exe())
def user_info():
age = int(input('What is your age: '))
gender = input('What is your gender: ')
weight = int(input('What is your weight: '))
height = int(input('What is your height in inches: '))
if gender == 'male':
c1 = 66
hm = 6.2 * height
wm = 12.7 * weight
am = 6.76 * age
elif gender == 'female':
c1 = 655.1
hm = 4.35 * height
wm = 4.7 * weight
am = 4.7 * age
#BMR = 665 + (9.6 X 69) + (1.8 x 178) – (4.7 x 27)
bmr_result = c1 + hm + wm - am
print('your bmr is =',bmr_result)
user_info()
Comments
Post a Comment