top of page
learn_data_science.jpg

Data Scientist Program

 

Free Online Data Science Training for Complete Beginners.
 


No prior coding knowledge required!

calculate your BMI for better health

Writer's picture: Rawda RumaiehRawda Rumaieh


As obesity doesn't only affect your physical health it can have a damaging effect on the quality of life. thus evaluating the body mass index is needed to let you understand the status of your body on the spectrum.

Such evaluations can help to clarify how your weight influences your overall health and wellbeing.

Here is the python code for calculating your BMI and analyzing the result through comparing it to the BMI spectrum


#defining a function to calculate body mass index
 #the function takes the weight and height and return the bmi and print the statues of the body
 def bmi_calculate(m,h):
    #calculating bmi using the formula
      bmi=m/(h*h)
    #checking in which category the body lies
    if bmi <= 18.5:
            print('Underweight',bmi)
    elif bmi >=18.5 and bmi<24.9:
            print('Normal weight',bmi)
    elif bmi >=25 and bmi <29.9:
            print('Overweight',bmi)
    else:
            print('Obesity',bmi)
#taking input from the user 
height = float(input("Input your height in m: "))
weight = float(input("Input your weight in Kilogram: "))
#calling the function
bmi_calculate(weight,height)


 
 

Commentaires


COURSES, PROGRAMS & CERTIFICATIONS

 

Advanced Business Analytics Specialization

Applied Data Science with Python (University of Michigan)

Data Analyst Professional Certificate (IBM)

Data Science Professional Certificate (IBM)

Data Science Specialization (John Hopkins University)

Data Science with Python Certification Training 

Data Scientist Career Path

Data Scientist Nano Degree Program

Data Scientist Program

Deep Learning Specialization

Machine Learning Course (Andrew Ng @ Stanford)

Machine Learning, Data Science and Deep Learning

Machine Learning Specialization (University of Washington)

Master Python for Data Science

Mathematics for Machine Learning (Imperial College London)

Programming with Python

Python for Everybody Specialization (University of Michigan)

Python Machine Learning Certification Training

Reinforcement Learning Specialization (University of Alberta)

Join our mailing list

Data Insight participates in affiliate programs and may sometimes get a commission through purchases made through our links without any additional cost to our visitors.

bottom of page