Aug-09-2020, 03:52 PM
Thanks for the smiley
Using f strings for the print statements
Using f strings for the print statements
name = 'Random' height = 1.65 weight = 52 bmi = weight / (height * height) print(f'Name: {name}\nBMI: {bmi}') if bmi < 25: print(f'{name} is underweight') elif bmi > 25: print(f'{name} is overweight') elif bmi == 25: print(f'{name} is normal-weight')