Hello ~
I am new to programming I started 2 weeks ago, I was so curious and passionate about this, well, I am trying to code a program that can give me a variable as a result using a BMI calculator I created, but I am having trouble trying to generate the result based on the variable "bmi" i dont know if im using the right datatype (thanks)
I am new to programming I started 2 weeks ago, I was so curious and passionate about this, well, I am trying to code a program that can give me a variable as a result using a BMI calculator I created, but I am having trouble trying to generate the result based on the variable "bmi" i dont know if im using the right datatype (thanks)
weight = int(input('Put weight')) Height = float(input('Put Height')) bmi = float(weight / (Height ** 2)) under_weight = list(range(14, 19)) normal_weight = list(range(19, 26)) over_weight = list(range(26, 31)) print('Your BMI is', bmi, 'greetings uwu') print() if bmi == under_weight: print('under_weight') elif bmi == normal_weight: print('normal Weight') elif bmi == over_weight: print('over weight')