Repository navigation
Expand file tree
/
Copy pathdatastructure.py
More file actions
88 lines (69 loc) · 1.84 KB
/
Copy pathdatastructure.py
File metadata and controls
88 lines (69 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# yoruba_dictionary = {wa= 'come',
# lo= go
# }
# print(yoruba_dictionary)
#
# height = float(input("Enter your height: "))
# age = int(input("Enter your age: "))
#
# if(height > 170):
# print('welcome')
# elif(age>17):
# print('welcome')
# else:
# print('you are not qualified')
# for i in range(3,9,20):
# print(i)
#
# names = []
# names.append("jonathan")
# names.append("isaac")
# names.append("daniel")
# names.append("laolu")
# names[2] = "laylo"
#
# print(names)
#
# for name in names:
# if( name == "laylo"):
# print("i've been looking for you")
# break;
# else:
# print("i'm looking for laylo")
# numbers = [6, 5, 3, 8, 4, 2, 5, 4, 11]
# numbers.append(8)
# numbers.pop(6)
#
# sum = 0
#
# for val in numbers:
# print(val, " + ", sum)
# sum = sum + val
#
# print("The sum is", sum)
#
# names=["tobi,james,laolu,laylo"]
#
# yoruba_dictionary={"come":"wa",
# "go":"lo"}
print("What's your BODY MASS INDEX(BMI)? ")
def calculate_bodymassindex( w,h ):
print(w/(h*h))
w=float(input("enter your weight:"))
h=float(input("enter your height:"))
calculate_bodymassindex( w,h )
body_mass_index=float(input("enter calcuated body mass index "))
if(float(body_mass_index > 14 and body_mass_index<16)):
print("you're stunting")
elif(float(body_mass_index > 16 and body_mass_index < 17)):
print("you're underweight")
elif(float(body_mass_index > 18 and body_mass_index < 25)):
print("your weight is normal")
elif(float(body_mass_index > 25 and body_mass_index <30)):
print("you're overweight")
elif(float(body_mass_index > 30 and body_mass_index <35)):
print("you're obesity grade1")
elif(float(body_mass_index > 35 and body_mass_index<40)):
print("you're obesity grade2")
else :
print("your level of obesity is grade3")