P_27 Coding Exercise for Beginners in Python | Exercise 7 | Python Tutorials for Beginners

preview_player
Показать описание
In this lecture we have written a program in python to calculate BMI and used elif statements.

*********************************************

Connect & Contact Me:

*******************************************

More Playlists:

#coding #pythonforbeginners #python #jennyslectures #pythonprogramming
Рекомендации по теме
Комментарии
Автор

I wanted to take a moment to express my deepest gratitude for the incredible Python lectures you've shared with us.
Your teachings have made a significant impact on my learning journey, and I am truly grateful for the knowledge and inspiration you've provided. Thank you so much, you are indeed an incredible lecturer. 🤗

toxeikaiautoregmt
Автор

Weight = int(input("Enter your weight in KG's"))
Height = float(input("Enter your Height in CM's"))

BMI = Weight/(Height ** 2)

print("you're BMI is ", BMI)

if(BMI<=18.5):
print("You are under weight")
elif(BMI>=18.5 and BMI<=24.9):
print("You are in normal range")
elif(BMI<=25):
print("You are OverWeight")
else:
print("Invalid error")

el-lite
Автор

Mam how to do reverse conditions like for under weight, normal under weight like that

Naveenvlogs
Автор

Awesome course. This course is a new ma'am.

shivampandey
Автор

print("Know your BMI here")
weight=float(input("Enter your weight in kg: "))
height=float(input("Enter your height in meter: "))
bmi= round(weight/height **2)

if bmi <18.5:
print(f"Your bmi is {bmi} and you are underweight")
elif bmi < 25.0:
print(f"Your bmi is {bmi} and you are normal weight")
elif bmi <30.0:
print(f"Your bmi is {bmi} and you are overweight")
elif bmi <35.0:
print(f"Your bmi is {bmi} and you are Obese")
else:
print(f"Your bmi is {bmi} and you are clinically Obese")
print("Thank you \nHave a nice day !")

Anagha-gxrj
Автор

print("Hello, welcome in the BIM program")
weight = float(input("Enter your weight:"))
height = float(input("Enter your height:"))

bim = float(weight) / float(height) ** 2

print("your BIM is: ", bim)

if bim < 16:
print("Your are: Underweight (Severe thinness)")
elif bim >= 16.0 and bim <= 16.9:
print("Your are: Underweight (Moderate thinness)")
elif bim >= 17.0 and bim <= 18.4:
print("Your are: Underweight (Mild thinness)")
elif bim >= 18.5 and bim <= 24.9:
print("Your are: Normal range")
elif bim >= 25.0 and bim <= 29.9:
print("Your are: Overweight (Pre-obese)")
elif bim >= 30.0 and bim <= 34.9:
print("Your are: Obese (Class I)")
elif bim >= 35.0 and bim <= 39.9:
print("Your are: Obese (Class II)")
elif bim >= 40.0:
print("Your are: Obese (Class III)")
else:
print("please enter a number")
print("Good Bye :)")

omarismail-qtos
Автор

height = float (input("Enter Height in meter : "))
weight = float (input("Enter Weight in KGs : "))
BMI = weight / height ** 2
print(BMI)
if BMI <18.5:
print("Underweight")
elif BMI >18.5 and BMI < 24.9 :
print("Normal Weight")
elif BMI >25 and BMI <29.9:
print("Overweight")
elif BMI >30.0 and BMI < 39.9:
print("Obese")
elif BMI > 35.0 and BMI <39.9:
print("Class 2 Obese")
elif BMI >= 40 :
print("Class 3 obese")
else:
print("Stay Fit")

girishbv
Автор

Madam in how many days python course will complete please reply madam

prasadsaladi
Автор

how many of you came here to see the madam face

gopichand_
Автор

Weight = float(input("Enter Weight in Killograms : "))
Height = float(input("Enter Height in Meter : "))
BMI = Weight/(Height**2)

if BMI < 18.5 :
print('You are Underweight')
elif BMI > 24.9 :
print('Your Over weight')
elif 18.5 <= BMI <=24.9 :
print('You have normal weight')

mohammedjazim
Автор

Ma'am while writing else if condition in the program, only we can write elif or otherwise we can also use as else if ??

prajwalm.v
Автор

I have one doubt madam if i am giving height more than 2.0 or 2.0 then it is considering two conditions. when if it is only 1.5 or 1.6 then it is considering one condition. so pls clear my doubt mam or anybody.

GymwithSai
Автор

#calculate Bmi

Weight = float(input("Please enter your weight in kilogram : "))
Height = float(input("Please enter your Height in meters : "))

Bmi = Weight / (Height**2)

print("Your BMI is", round(Bmi))

if Bmi <=16 :
print("You are severe underweight!!")
elif Bmi <= 16.9:
print("You are moderate underweight!! ")
elif Bmi <= 18.4:
print("You are mild underweight!!")
elif Bmi <= 24.9:
print("You are in normal range!!")
elif Bmi <= 29.9:
print("You are overweight!!")
elif Bmi <= 34.9:
print("You are obese class 1!!")
elif Bmi <= 39.9:
print("You are obese class 2!!")
elif Bmi > 40 :
print("You are obese class3!!")
else:
print("Data not available!!")
print("Thank you!!")

sidharthkaruvarath
Автор

Your teaching style is very beautiful mam❤🫰✨

KartikMK-lsjr
Автор

# #BMI Calculator
# #calculate BMI, formula= weight/(height**2) by using round() function
weight=int(input(f"enter your weight in kgs: "))
height=float(input(f"enter your height in m: "))

print("Your BMI is:", (round(bmi, 2)))
if bmi<16.0:
print("You belong to the category of Underweight(Severe thinness)")
elif 16.0<=bmi<=16.9:
print("You belong to the category of Underweight(Moderate thinness)")
elif 17.0<=bmi<=18.4:
print("You belong to the category of Underweight(Mild thinness)")
elif 18.5<=bmi<=24.9:
print("You belong to the category of Normal range")
elif 25.0<=bmi<=29.9:
print("You belong to the category of Overweight(Pre-Obese)")
elif 30.0<=bmi<=34.9:
print("You belong to the category of Obese(Class |)")
elif 35.0<=bmi<=39.9:
print("You belong to the category of Obese(Class ||)")
elif bmi>=40.0:
print("You belong to the category of Obese(Class |||) ")
else:
print("You should get enrolled into gym and make proper plans for your diet ")
print("And consult a doctor as soon as possible")

_InFACT
Автор

print("Welcome!Know your BMI ")
weight=float(input('Enter weight in kg:'))
height=float(input('Enter height in meter:'))

bmi=round(weight/height ** 2)
if bmi <18.5:
print(f"Your BMI is {bmi} and you are underweight. ")
elif bmi >18.5 and bmi <= 25:
print(f"Your BMI is {bmi} and you are normal weight.")
elif bmi < 30:
print(f"Your BMI is {bmi} and you are overweight")
elif bmi < 35:
print(f"Your BMI is {bmi} and you are obese")

NandiniBhati
Автор

print("\nWelcome to the BMI Calculator\n")
weight = float(input("Insert weight in kgs : "))
height = float(input("Insert height in meteres : "))
result =weight/height**2
print("Your BMI is:", result)
if result < 18.5:
print("You are under weight.")
elif result >=18.5 and result <25:
print("Yor are normal weight.")
elif result >=25 and result <30:
print("You are over weight.")
else:
print("You are obese.")

print("Thanks for Visiting\nHave a Good Day")

muhammadbhutta
Автор

Actually Mam..
Can you plz..make a motivational or kind of a girl That she has a knowledge like you ..to achieve that what should we do..?plz .mam..and My KIND REQUEST IS PLZ..make that kind of vedioes in ENGLISH..
becoz.. It would be better for all students..
....who has a language prob..

thethemeofvoyage
Автор

height = float(input("Enter your height in Meters : "))
weight = float(input("Enter your weight in kg : "))
bmi = weight/(height**2)
if (bmi<18.5):
print(f"Your BMI is {round(bmi)} and you are under weight")
elif(bmi>=18.5 and bmi <=24.9):
print(f"Your BMI is {round(bmi)} and you are normal weight")
elif(bmi>=25 and bmi<=29.9):
print(f"Your BMI is {round(bmi)} and you are over weight")
else:
if(bmi>=30 and bmi<=34.9):
print(f"Your BMI is {round(bmi)} and you have moderate obesity")
elif (bmi >= 35 and bmi <= 39.9):
print(f"Your BMI is {round(bmi)} and you have severe obesity")
else:
print(f"Your BMI is {round(bmi)} and you have morbid obesity")

LingeshhvarenKA
Автор

Do more exercises in difficult way maam

eswaribondada