0
I need to add a code that enables me to take in multiple user details to my BMI calculator program on python
Keeping in mind that one person already has two inputs Weight Height
8 Answers
+ 3
What is your question?
If you need help, please state the problem. If it is a sololearn task, mention course name and task number: Read the lesson again, then try to code, then show us your code.
+ 3
Granps
Please post your code attempt.
so we may see where your trouble is.
Keep in mind that multiple inputs must be placed at the same time before you run the code
+ 3
Granps
Attached is a little concept showing how you may assess the BMI of multiple people.
https://code.sololearn.com/c6DsRJw6qUeO/?ref=app
+ 2
You can use a loop. On each iteration take weight and height of a person.
+ 2
If you already have the data, you could put them into a text file, then read the text file...
+ 1
w= int(input())
h= float(input())
x= w/h**2
print (x)
if x < 18.5:
print("Underweight")
elif (x >= 18.5) and (x<25):
print ("Normal")
elif (x>=25) and (x<30):
print("Overweight")
elif (x>30):
print("Obesity")
Here's my code attempt.
It calculates the BMI for only one person, I want to create a program that can calculate the BMI of a 100 people at the same time
+ 1
Thank you
0
Thank you Lisa