Python Basic: Exercise-66 with SolutionWrite a Python program to calculate body mass index. Pictorial Presentation: Sample Solution:- Python Code:
Sample Output: Input your height in Feet: 6 Input your weight in Kilogram: 65 Your body mass index is: 1.81 Flowchart: 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. View Discussion Improve Article Save Article View Discussion Improve Article Save Article 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. ApproachIn 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 Python3
Output: https://media.geeksforgeeks.org/wp-content/cdn-uploads/20200729151851/python-countdown-timer.webm |