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

11th Aug 2022, 10:37 AM
Adeyinka Ayobami
Adeyinka Ayobami - avatar
8 ответов
+ 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.
11th Aug 2022, 10:50 AM
Lisa
Lisa - avatar
+ 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
11th Aug 2022, 11:11 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Granps Attached is a little concept showing how you may assess the BMI of multiple people. https://code.sololearn.com/c6DsRJw6qUeO/?ref=app
16th Aug 2022, 12:13 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
You can use a loop. On each iteration take weight and height of a person.
15th Aug 2022, 2:13 PM
Lisa
Lisa - avatar
+ 2
If you already have the data, you could put them into a text file, then read the text file...
15th Aug 2022, 2:38 PM
Lisa
Lisa - avatar
+ 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
15th Aug 2022, 2:05 PM
Adeyinka Ayobami
Adeyinka Ayobami - avatar
+ 1
Thank you
29th Aug 2022, 9:19 AM
Adeyinka Ayobami
Adeyinka Ayobami - avatar
0
Thank you Lisa
15th Aug 2022, 2:14 PM
Adeyinka Ayobami
Adeyinka Ayobami - avatar