Join the conversation

person_name=input("Enter Your Name:")
person_weight=input("Enter Your Weight:")
person_height=input("Enter Your height:")
bmi = person_weight /(person_height**2)
print("Your BMI is:",bmi)
Reply

name = input("Enter your name")
weight=int(input("Enter your weight"))
height=float(input("Enter your height"))bmi = weight / (height ** 2)
print("Welcome to ",name,"Your BMI is ", bmi)
Reply

p1 = input("Enter your name")
age1=input("Enter your age")
p2 = input("Enter your name")
age2=input("Enter your age")if age1>age2:
print("The",p1,"is greater than",p2)
else:
print("The",p2,"is grater than",p1)
Reply

person_a = input('Enter first name : ')
person_a_age = input('Enter your age : ')
#
person_b = input('Enter second name : ')
person_b_age = input('Enter your age : ')if(person_a_age > person_b_age):
print(person_a, 'is older than', person_b)
else:
print(person_a, 'is younger than', person_b)
Reply

name = input('Enter your name:')
weight = float(input('Enter your weight in kg: '))
height = float(input('Enter your height in meters: '))
bmi = weight / height ** 2
print(f'Hello {name}, your BMI is {bmi:.2f}')
if bmi < 18.5:
print('You are underweight.')
elif 18.5 <= bmi < 24.9:
print('You have a normal weight.')
else:
print('You are overweight.')
Reply

wonderful
Reply

name = input("Enter your name: ")
weight = float(input("Enter your weight in kilograms (kg): "))
height = float(input("Enter your height in meters (m): "))
bmi = weight / (height ** 2)
print(f"nHello {name}!")
print(f"Your BMI is: {bmi:.2f}")
if bmi < 18.5:
print("You are underweight.")
else:
print("You are obese.")
Reply

Done
Reply

person_a_name = input("Enter person A name: ")
person_a_age = int(input("Enter person A age: ")) # convert to int
person_b_name = input("Enter person B name: ")
person_b_age = int(input("Enter person B age: ")) # convert to intif person_a_age > person_b_age:
print(f"{person_a_name} is elder than {person_b_name}")
elif person_a_age < person_b_age:
print(f"{person_b_name} is elder than {person_a_name}")
else:
print(f"{person_a_name} and {person_b_name} are of the same age")
Reply

# program to take weight and height from user and calculate BMI
weight = float(input("Enter your weight in kg: "))
height = float(input("Enter your height in meters: "))
bmi = weight / (height ** 2)
print("Your BMI is: " + str(bmi))
Reply