Please share an example of a python app to measure BMI with objects and classes that prints out to excel | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please share an example of a python app to measure BMI with objects and classes that prints out to excel

BMI app prints out

4th Apr 2019, 4:10 AM
Timothy Makori
Timothy Makori - avatar
2 Answers
+ 2
You need to give more details on what it should save as a excel file. And you asked for a lot there. Try specifing your question and splitting it up to multiples shorter question lile how to calculate bmi. Ans second question how to save a file to open it in excel. Maybe than more people can answer one or the other question.
4th Apr 2019, 7:13 AM
Dragonxiv
Dragonxiv - avatar
0
height = input("height:") weight = input("weight:") bmi = int(weight) / int(height * height) print(bmi) So I want the bmi for many participants to be stored in one excel file and then if the bmi is less than 19, recommendation to eat better and if bmi is more than 30 recommendation to exercise
4th Apr 2019, 1:00 PM
Timothy Makori
Timothy Makori - avatar