Python Basic: Exercise-66 with Solution
Write a Python program to calculate body mass index.
Input your height in Feet: 6 Input your weight in Kilogram: 65 Your body mass index is: 1.81
Visualize Python code execution:
The following tool visualize what the computer is doing step-by-step as it executes the said program:
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Python program to convert seconds to day, hour, minutes and seconds.
In this article, we will see how to create a countdown timer using Python. The code will take input from the user regarding the length of the countdown in seconds. After that, a countdown will begin on the screen of the format ‘minutes: seconds’. We will use the time module here.
In this project, we will be using the time module and its sleep() function. Follow the below steps to create a countdown timer:
Below is the implementation of the above approach