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.
height = input("height:")
weight = input("weight:")
bmi = int(weight) / int(height * height)
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