21-May-2026 Lesson 10 (Additional 2) (Page 93)

Run Settings
LanguagePython
Language Version
Run Command
#https://glot.io/snippets/hc752x5aob w = input("Please input your weight (kg) ") h = input("please input your height (cm)") if w=='' or h=='': print("either your weight, height or both has not yet inputed !") elif w.isdigit()==False or h.isdigit() == False: print("wrong input") else: w = float(w) h = float(h)/100 bmi = round(w/(h**2),2) if bmi <18.5: note = 'you are under weightd' elif bmi >= 18.5 and bmi <=25: note = 'you are fit' else: note = 'you are over-wighted' print(f'Your BMI : {bmi}, {note}')
Editor Settings
Theme
Key bindings
Full width
Lines