Join the conversation
print("Welcome to BMI Calculator!n")
name=input("What is your name? ")
weight=int(input("Enter Your Weight in kg: "))
print("Enter your Height!")
f=int(input("Feet: "))
inch=int(input("Inches: "))
height=(0.3048*f) + (0.0254*inch)
bmi=weight/(height*height)print(f"Hello, {name}nYour BMI is: {bmi}")if bmi=18.5 and bmi=25) and (bmi<=29.9):
print("OverWeight!")
else:
print("Obesity!")print('''n
Underweight = <18.5
Normal weight = 18.5–24.9
Overweight = 25–29.9
Obesity = BMI of 30 or greater
''')
Reply
# Calculate BMI
name =input ("Wel come, Tell me your name for BMI Calculation ")
weight = float(input ("your weight "))
feet = float(input ("told me hegiht in feet "))
inch = float(input("told me your hegiht inch"))
height = (feet*0.3048) + (inch *0.0254)BMI_formula = weight / (height ** 2)
if BMI_formula < 18.5:
print (name, "you are underweight")
elif 18.5 <= BMI_formula <= 24.9:
print (name, "your weight normalweight")
elif 25 <= BMI_formula <= 29.9:
print(name, "your weight Overweight")
else:
print(name, "Obesity")
print(f"{name}, is your {BMI_formula:.2f}")
Reply
name_a = input("Enter your name Person A: ")
name_b = input("Enter your name Person B: ")age_a = input(f"Enter your age {name_a}: ")
age_b = input(f"ENter your age {name_b}: ")if age_a > age_b:
print(name_a, "is older than", name_b)
elif age_a == age_b:
print(name_a, "and", name_b, "are the same age")
else:
print(name_b, "is older than", name_a)
Reply
person_a= input("Your name here")
person_b= input("Your Name")age_1= 20
age_2= 30if age_1 > age_2:
print(Person_a,"bara hai")
else:
print(person_b,"bara hai")
Reply
person_a = input("What is your name? ")
person_b = input("What is your name? ")
age_a = input("How old are you? ")
age_b = input("How old are you? ")if age_a > age_b:
print(person_a + " is older than " + person_b)
else:
print(person_b + " is older than " + person_a)
Reply
easy hy sir aap ke sath
Reply
excellent lecture sir
Reply
weight = int(input());
height = float(input());
x = weight/float(height*height);
if x =18.5 and x= 25 and x = 30:
print('Obesity')
Reply
name = input("Enter your name: ")
age = int(input("Enter your age: "))
weight = float(input("Enter your weight in kg: "))
height = float(input("Enter your height in m: "))
bmi = weight / (height * height)
print(name," BMI is: ",bmi)
Reply
# Calculating the BMI of two people and then comparing it. We are going to do this with Input function, and we will also apply conditions to check whether they have same or different BMI
# units : Matric
# Asking Names, Weight (kg), Height (m)
# Formula = Weight (kg) / [Height (m)]^2Person_1_name = input ("what is your name ?")
Person_2_name = input (" What is your name ?")Person_1_Height = float (input ("Tell me your Height in meters "))
Person_2_Height = float (input ("Tell me your Height in meters "))Person_1_Weight = float(input ("Tell me your Weight in kg "))
Person_2_Weight = float(input ("Tell me your Weight in kg "))Person_1_BMI = Person_1_Weight / (Person_1_Height ** 2)
print(Person_1_BMI)Person_2_BMI = Person_2_Weight / (Person_2_Height ** 2)
print(Person_2_BMI)if Person_1_BMI < Person_2_BMI:
print(Person_1_name,"'s BMI is less than", Person_2_name,"'s BMI")
elif Person_1_BMI == Person_2_BMI:
print(Person_1_name,"'s BMI is same as", Person_2_name,"'s BMI")
else:
print(Person_1_name,"'s BMI is greater than", Person_2_name,"'s BMI")
Reply