What I did Today
1.I built a simple BMI Calculator app that calculates your BMI based on your weight and height.
On what I did Today
1.I was trying to impliment building a calculator app by using a function.
2.Only need to know the formula for calculating the BMI which is:
BMI = (Weight/ height **2)
3.The only thing remaining is for you to dictate the flow of the program.
4.By this is you define the function, ask the user to input their weight and height , calculate the BMI , display the output.
5 One can go ahead and add other functionalities like if-else statement to check if you're underweight, overweight or normal
Link to the project on github: [(https://github.com/yfwjay/python-concepts/tree/week-three/week-three/Day2)]
Resources I used
1.Python refresher series by Bonaventure Ogeto
2.Github for documenting the python series journey by pushing to public repo python-concepts
What's Next
- Learn return statements and lambda functions
Top comments (0)