1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Stella [2.4K]
3 years ago
12

How do we calculate the BMI in python? the formula is kg/m²

Computers and Technology
1 answer:
Igoryamba3 years ago
3 0

Answer:

height = float(input("Enter your height in m: "))

weight = float(input("Enter your weight in kg: "))

BMI = weight / (height/100)**2

print(f"You BMI is {BMI}")

Explanation:

The python code for calculating BMI is as follows -

height = float(input("Enter your height in m: "))

weight = float(input("Enter your weight in kg: "))

BMI = weight / (height/100)**2

print(f"You BMI is {BMI}")

Some conditions can also be added such as

if BMI <= 15:

   print("You are underweight.")

elif BMI <= 30:

   print("You are healthy.")

elif BMI <= 40:

   print("You are over weight.")

You might be interested in
Identity management programs often implement a _________system that facilitates the management of user accounts.
Trava [24]

Answer:

single sign-on

Explanation:

Identity management programs in computer operation involve an administrative process that is carried out by implementing a SINGLE SIGN-ON system that facilitates the management of user accounts.

The purpose is to identify, validate, and approve an individual or group of people to have permission to various applications, computer systems, or networks by linking user rights and limitations with created identities.

Hence, in this case, the correct answer is SINGLE SIGN-ON

6 0
3 years ago
A positive return on investment for higher education.
lesya692 [45]

Answer: is when your earnings potential is higher than the cost of your education

Explanation:

A positive return on investment on a particular thing occurs when the benefit derived is more than the cost that was incurred while in a scenario whereby the cost is more than the benefit, a negative return on investment took place.

In this case, a positive return on investment for higher education occurs when your earnings potential is higher than the cost of your education.

5 0
3 years ago
Hola, alguien me puede ayudar¡¡¡¡¡¡¡¡¡¡¡¡
WARRIOR [948]
Hola<span>, </span>Alguien me<span> podría </span>ayudar<span> a realizar una buena sinopsis de la película "</span><span>Jardín de Amapolas" dirigida por Carlos Melo Guevara, gracias? i hope i helped you</span>
4 0
3 years ago
The code repeat 3 [forward 50 right 120] creates which shape?
Basile [38]

Answer:

Triangle. D

Explanation:

I have no Idea, I was searching for the answer like most of you guys are doing. But my best guess is Triangle

7 0
3 years ago
Read 2 more answers
When considering the purchase of a major software application, managers need to also consider the following potential downside:
Anastasy [175]

Answer:

The answer is B.The package seldom totally fits the company's needs

Explanation:

7 0
4 years ago
Other questions:
  • Discuss your theory on why the light bulbs in the combination circuit have different brightness.
    6·1 answer
  • When broadcasting live on social, keep in mind that the best broadcasts are ones that feel like a conversation between brand and
    8·1 answer
  • _________ is the start up sequence a computer conducts.
    9·1 answer
  • Excel allows you to rotate text in a cell counterclockwise by entering a number between -1 degrees and -90 degrees. True or fals
    14·1 answer
  • Which is a primary document?<br> a. letter<br> b. dictionary<br> c. textbook<br> d. website
    11·1 answer
  • What will be displayed after code corresponding to the following pseudocode is run? Main Set OldPrice = 100 Set SalePrice = 70 C
    10·1 answer
  • What is the purpose of a forecast worksheet?
    15·1 answer
  • What is 4x+2x(-3-3) thanku
    11·2 answers
  • Who is the primary audience for demonstrations of game prototypes made by the developer? A. Another developer B. The distributor
    10·1 answer
  • According to the video, which tasks do Police Patrol Officers perform? Select all that apply.
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!