Insulin

3370 days ago by cshdaniel

bloodsugar=412 carbs=51 def b(s): return ((s-125)/25) def c(h): return (h/5) def word(a): return (a) print(word('blood sugar')) print(bloodsugar) print(word('carbs')) print(carbs) print(word('take')) print(b(bloodsugar)+c(carbs).n(digits=4)) print(word('units of insulin')) #word("carbs"), carbs 
       
blood sugar
412
carbs
51
take
21.68
units of insulin
blood sugar
412
carbs
51
take
21.68
units of insulin
print(word('blood sugar='),(bloodsugar)) print(word('carbs='),(carbs)) print(word('take')) print(b(bloodsugar)+c(carbs).n(digits=4)) print(word('units of insulin')) 
       
('blood sugar=', 412)
('carbs=', 51)
take
21.68
units of insulin
('blood sugar=', 412)
('carbs=', 51)
take
21.68
units of insulin