filmov
tv
Beginner Python Coding Tutorial - How to code a BMI calculator

Показать описание
Start learning how to code fast with this beginner-friendly, step-by-step python programming practice.
This beginner-friendly tutorial will teach you how to become a python programmer in no time!
The problem you'll learn how to solve in this video is from the book, Starting Out With Python, by Tony Gaddis.
In this step by step python for beginner tutorial, we'll be covering if statements, getting input from the user, print statements, variables, decision statements, and basic arithmetic. By the end of this video you'll know how to create a program that solves a problem by getting input from the user, performing calculations and decisions, and outputting the correct result to the user's screen.
The assignment is to create a program create a program that will calculate a person’s BMI using the following equation (using pounds and
inches for units):
BMI = weight * (703/height^2)
If the BMI is below 18.5 a person is underweight whereas if a person has a BMI over 25, they are overweight. Ask the user to provide their weight in pounds and their height in inches. Then report their BMI and tell them if they are underweight, overweight, or optimal. If the person is in the overweight category, then calculate and provide the amount of weight that is needed to lose to get down into the optimal category.
#pythonprogramming #python #ai #machinelearning #webdevelopmentLearn Python in 16 Minutes With This Python Practice Assignment!
This beginner-friendly tutorial will quickly help you learn how to code and write efficient programs.
The problem you'll learn how to solve in this video is from the book, Starting Out With Python, by Tony Gaddis.
In this step by step python for beginner tutorial, we'll be covering if statements, getting input from the user, print statements, variables, the modulus operator, and basic arithmetic. By the end of this video you'll know how to create a program that solves a problem by getting input from the user, performing calculates and decisions, and outputting the correct result to the user's screen.
The assignment is to create a program that calculates the required number of hot dog and bun purchases you will need for a picnic. We are given the information that hot dogs come in packages of 10 and hot dog buns come in packages of 8. The program will start by asking how many people will come to the picnic and how many hot dogs they will each eat. Then, we will calculate and report:
1. The minimum number of hot dog packages to buy
2. The minimum number of hot dog bun packages to buy
3. The number of hot dogs that are left over
4. The number of hot dog buns that are left over
#pythonprogramming #python #ai #machinelearning #webdevelopment
This beginner-friendly tutorial will teach you how to become a python programmer in no time!
The problem you'll learn how to solve in this video is from the book, Starting Out With Python, by Tony Gaddis.
In this step by step python for beginner tutorial, we'll be covering if statements, getting input from the user, print statements, variables, decision statements, and basic arithmetic. By the end of this video you'll know how to create a program that solves a problem by getting input from the user, performing calculations and decisions, and outputting the correct result to the user's screen.
The assignment is to create a program create a program that will calculate a person’s BMI using the following equation (using pounds and
inches for units):
BMI = weight * (703/height^2)
If the BMI is below 18.5 a person is underweight whereas if a person has a BMI over 25, they are overweight. Ask the user to provide their weight in pounds and their height in inches. Then report their BMI and tell them if they are underweight, overweight, or optimal. If the person is in the overweight category, then calculate and provide the amount of weight that is needed to lose to get down into the optimal category.
#pythonprogramming #python #ai #machinelearning #webdevelopmentLearn Python in 16 Minutes With This Python Practice Assignment!
This beginner-friendly tutorial will quickly help you learn how to code and write efficient programs.
The problem you'll learn how to solve in this video is from the book, Starting Out With Python, by Tony Gaddis.
In this step by step python for beginner tutorial, we'll be covering if statements, getting input from the user, print statements, variables, the modulus operator, and basic arithmetic. By the end of this video you'll know how to create a program that solves a problem by getting input from the user, performing calculates and decisions, and outputting the correct result to the user's screen.
The assignment is to create a program that calculates the required number of hot dog and bun purchases you will need for a picnic. We are given the information that hot dogs come in packages of 10 and hot dog buns come in packages of 8. The program will start by asking how many people will come to the picnic and how many hot dogs they will each eat. Then, we will calculate and report:
1. The minimum number of hot dog packages to buy
2. The minimum number of hot dog bun packages to buy
3. The number of hot dogs that are left over
4. The number of hot dog buns that are left over
#pythonprogramming #python #ai #machinelearning #webdevelopment