![]() ![]() The program works well, we can even test it out: Height = float(input(‘Enter your height in meters: ‘)) ![]() Weight = float(input(‘Enter your weight in kg: ‘)) The program receives as input the user’s height and weight and prints out the BMI according to the formula Weight / Height : In this article, we shall consider a fairly simple Python project for calculating the body mass index or BMI. To use one of these modules, you must of course have previously installed Python on your machine. It is possible to perform this conversion with different modules created for this purpose. In this way, they can be used without having to install Python and are thus made available to as many people as possible. Applications or scripts developed with the Python language can be converted into executables for the Windows operating system.
0 Comments
Leave a Reply. |