Write function bmi that calculates body mass index (bmi = weight / height ^ 2).


if bmi <= 18.5 return "Underweight"

if bmi <= 25.0 return "Normal"

if bmi <= 30.0 return "Overweight"

if bmi > 30 return "Obese"

Difficulty: introductory

Starter code:

def bmi(weight, height):
	

Solutions:
def bmi(weight, height):
    bmi = weight / height ** 2
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25:
        return "Normal"
    elif bmi <= 30:
        return "Overweight"
    else:
        return "Obese"

def bmi(weight, height):
    b = weight / height ** 2
    return ['Underweight', 'Normal', 'Overweight', 'Obese'][(b > 30) + (b > 25) + (b > 18.5)]

def bmi(weight, height):
    bmi = weight / height ** 2
    return 'Underweight' if bmi <= 18.5 else 'Normal' if bmi <= 25.0 else 'Overweight' if bmi <= 30.0 else "Obese"

def bmi(weight, height):
    youfat = (weight / (height * height))
    
    if youfat <= 18.5:
        return "Underweight"
    elif youfat <= 25.0:
        return "Normal"
    elif youfat <= 30.0:
        return "Overweight"
    else:
        return "Obese"

def bmi(weight, height):
    bmeye = (weight/(height**2))
    if bmeye <= 18.5: return("Underweight")
    elif bmeye <= 25.0: return("Normal")
    elif bmeye <= 30.0: return("Overweight")
    elif bmeye > 30: return("Obese")

def bmi(weight, height):

    index = weight / (height * height)
    
    if index <= 18.5:
    
        return "Underweight"
    

    if index <= 25.0:
    
        return "Normal"
    

    if index <= 30.0:
    
        return "Overweight"
    

    if index > 30:
    
        return "Obese"
    



bmi = lambda w,h: (lambda b=w/h**2: ["Underweight", "Normal", "Overweight", "Obese"][(18.5<b) + (25<b) + (30<b)])()

def bmi(weight, height):
    index = weight/height/height
    return "Underweight" if index <= 18.5 else "Normal" if index <= 25.0 else\
      "Overweight" if index <= 30.0 else "Obese"

def bmi(weight, height):
    result = weight / height / height
    return "Underweight Normal Overweight Obese".split()[
            (result > 18.5) +
            (result > 25.0) +
            (result > 30.0)]

def bmi(weight, height):
    BMI=weight/(height*height)
    return 'Underweight'if BMI<=18.5 else( 'Normal'if BMI<=25.0 else ('Overweight'if BMI<=30.0 else 'Obese'))

def bmi(weight, height):
    bmi = weight/height ** 2
    if bmi <= 18.5:
        return ("Underweight")
    elif bmi <= 25.0:
        return ("Normal")
    elif bmi <= 30:
        return ("Overweight")
    else:
        return ("Obese")

bmi=lambda w,h:next(s for s,t in zip("Obese Overweight Normal Underweight".split(),(30,25,18.5,0))if w/h/h>t)

def bmi(weight, height):
    bmi = weight / height**2
    return ["Obese", "Overweight", "Normal", "Underweight"][(bmi<=30) + (bmi<=25) + (bmi<=18.5)]

def bmi(w,h):
    x=(w/((h)**2))
    if x<=18.5:
        return "Underweight"
    elif 18.5<x<=25.0:
        return "Normal"
    elif 25.0<x<=30.0:
        return "Overweight"
    elif x>30.0:
        return "Obese"

def bmi(weight, height):
    bmi = weight / (height * height)
    if bmi <= 18.5:
        return "Underweight"
    if bmi <= 25:
        return "Normal"
    if bmi <= 30:
        return "Overweight"
    return "Obese"

def bmi(weight, height):
    BMI = weight/height**2
    if (int(BMI) < 18.5):
        results = 'Underweight'
    elif (int(BMI) < 25.0 ):
        results = 'Normal'
    elif (int(BMI) < 30.0 ):
       results = 'Overweight'
    else:
        results ='Obese'
    return(results)

def bmi(weight, height):
    BMI = weight/(height**2)
    if BMI > 30:
        return 'Obese'
    elif BMI > 25:
        return 'Overweight'
    elif BMI > 18.5:
        return 'Normal'
    else:
        return 'Underweight'
    #your code here


def bmi(weight, height):
    """
    calculates bmi from weight in kg
    and height in meters
    """
    bmi = weight / (height**2)
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25.0:
        return "Normal"
    elif bmi <= 30.0:
        return "Overweight"
    else:
        return "Obese"


def bmi(weight, height):
    bmi = weight/height**2
    return "Underweight" if bmi <=18.5 else \
           "Normal" if bmi < 25.0 else \
           "Overweight" if bmi < 30.0 else "Obese"

def bmi(w, h):
    bmi = w/h**2
    if bmi <= 18.5: return "Underweight"
    elif bmi <= 25: return "Normal"
    elif bmi <= 30: return "Overweight"
    else: return "Obese"

def bmi(weight, height):
    bmi = weight / pow(height, 2)
    if bmi > 30:
        result = "Obese"
    elif bmi <= 30.0 and bmi > 25.0:
        result = "Overweight"
    elif bmi <= 25.0 and bmi > 18.5:
        result = "Normal"
    else:
        result = "Underweight"
    return result

def bmi(weight, height):
    bmi = weight / height ** 2

    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25:
        return "Normal"
    elif bmi <= 30:
        return "Overweight"
    elif bmi > 30:
        return "Obese"

def bmi(weight, height):
    bmi = weight/(height ** 2)
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25.0:
        return  "Normal"
    elif bmi  <= 30.0:
        return "Overweight"
    return "Obese"

def bmi(weight, height):
    bmi = weight / (height**2)
    if bmi <= 18.5: return "Underweight"

    elif bmi <= 25.0: return "Normal"
    
    elif bmi <= 30.0: return "Overweight"
    
    elif bmi > 30: return "Obese"

def bmi(weight, height):
  bmi_val = weight / height**2
  return get_weight_class(bmi_val)

# bmi_ranges start open bound & end closed bound
def get_weight_class(bmi_val):
  bmi_ranges = [(0, 18.5), (18.5, 25), (25, 30), (30, float("inf"))]
  weight_classes = {
    (0, 18.5): "Underweight",
    (18.5, 25): "Normal",
    (25, 30): "Overweight",
    (30, float("inf")): "Obese",
  }
  # see what range bmi belongs to with binary search
  start = 0
  end = len(bmi_ranges) - 1

  while not(start > end):
    mid_i = start + abs(end - start)//2
    range_start, range_end = bmi_ranges[mid_i]

    if range_start < bmi_val <= range_end:
      return weight_classes[(range_start, range_end)]
    elif bmi_val <= range_start:
      end = mid_i - 1
    elif bmi_val > range_end:
      start = mid_i + 1

  raise ValueError("BMI value out of range.")


def bmi(weight, height):
    bmi = weight / height ** 2
    arr = 'Underweight Normal Overweight Obese'.split()
    return arr[(bmi > 18.5) + (bmi > 25) + (bmi > 30)]

def bmi(weight, height):
    bmi = weight / height ** 2
    return (["Underweight", "Normal", "Overweight", "Obese"]
            [int(bmi > 18.5) + int(bmi > 25.0) + int(bmi > 30.0)])

bmi = lambda w, h: (lambda x: [[["Underweight", "Normal"][18.5<x<=25], "Overweight"][25<x<=30], "Obese"][x>30])(w / h**2)

def bmi(weight, height):
    bm = weight/(height**2.)
    for val, outp in zip([18.5, 25, 30], ['Underweight', 'Normal', 'Overweight']):
        if bm <= val:
            return outp
    return 'Obese'

a = lambda w, h: w/(h**2)
bmi = lambda w,h: "Underweight" if a(w,h) <= 18.5 else "Normal" if a(w,h) <= 25 else "Overweight" if a(w,h) <= 30 else "Obese"

bmi=lambda w,h:(lambda b: "Underweight" if b<= 18.5 else "Normal" if b<= 25.0 else "Overweight" if b<= 30.0 else "Obese")(w/h/h)

def bmi(weight, height):
    i = weight/height**2
    return 'Underweight' if i <=18.5 else 'Normal' if i<= 25 else 'Overweight' if i<= 30 else 'Obese'

def bmi(weight, height):
    scale = {18.5:    'Underweight',
             25.0:    'Normal',
             30.0:    'Overweight'}
    
    x = weight / height / height

    for bmi_class, label in scale.items():
        if x < bmi_class:
            return label

    return "Obese"

def bmi(weight, height):
    #your code here
    bmi = weight / (height ** 2)
    if bmi <= 18.5:
        return "Underweight"
    elif bmi > 18.5 and bmi <= 25.0:
        return "Normal"
    elif bmi > 25 and bmi <= 30:
        return "Overweight"
    elif bmi > 30:
        return "Obese"


def bmi(weight, height):
    bmi = round(weight/height**2,1)
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25.0:
        return "Normal"
    elif bmi <= 30:
        return "Overweight"
    else:
        return "Obese"

def bmi(weight, height):
    body = weight/height**2
    if body <= 18.5: 
        return "Underweight"
    elif body <= 25.0  and body > 18.5:
        return "Normal"
    elif body <= 30.0 and body > 25:
        return "Overweight"
    else: 
        return "Obese"

def bmi(weight, height):
    bmi=(weight/(height**2))
    
    if bmi <= 18.5: return "Underweight"
    elif bmi <= 25.0 and bmi>= 18.5: return "Normal"
    elif bmi <= 30.0 and bmi>= 25.0: return "Overweight"
    elif bmi > 30: return "Obese"

def bmi(weight, height):
    bmi = weight / height ** 2
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25.0:
        return "Normal"
    elif bmi <= 30.0:
        return "Overweight"
    elif bmi > 30.0:
        return "Obese"
    else:
        return 0

bmi=lambda w,h:(lambda x:'Underweight' if x<=18.5 else 'Normal' if x<=25 else 'Overweight' if x<=30 else 'Obese')(w/h**2)

def bmi(weight, height):
    c=(weight/height**2)
    if(c<=18.5):
        return "Underweight"
    elif(c<=25.0):
        return "Normal"
    elif(c<=30.0):
        return "Overweight"
    return "Obese"

def bmi(weight, height):
    bm = weight/(height**2)
    if bm <= 18.5: return "Underweight"
    if bm <= 25.0: return "Normal"
    if bm <= 30.0: return "Overweight"
    return "Obese"

def bmi(weight, height):
    bmi = weight / (height ** 2)
    if bmi <+ 18.5:
        return 'Underweight'
    elif bmi <= 25:
        return 'Normal'
    elif bmi <= 30:
        return 'Overweight'
    else:
        return 'Obese'

def bmi(weight, height):
    bo_m_i = weight / height ** 2
    if bo_m_i <= 18.5:
        return "Underweight"
    elif bo_m_i <= 25.0:
        return "Normal"
    elif bo_m_i <= 30.0:
        return "Overweight"
    else:
        return "Obese"


def bmi(weight, height):
    bmi = weight / height**2
    for i,limit in enumerate((18.5, 25, 30)):
        if bmi <= limit:
            return ("Underweight","Normal","Overweight")[i]
    else:
        return "Obese"

def bmi(weight, height):
    abmi=weight/(height*height)
    if abmi <= 18.5: return "Underweight"
    elif 18.5<abmi<=25.0: return "Normal"
    elif 25.0<abmi<=30.0: return "Overweight"
    elif 30.0<abmi: return "Obese"
    #your code here


def bmi(weight, height):
    a = weight / height ** 2
    if a <= 18.5: return "Underweight"
    elif a <= 25.0: return "Normal"
    elif a <= 30.0: return "Overweight"
    return "Obese"
    #your code here


def bmi(weight, height):
    index = weight / height**2
    if index > 30:
        return "Obese"
    elif index > 25:
        return "Overweight"
    elif index > 18.5:
        return "Normal"
    else:
        return "Underweight"

def bmi(weight, height):
    bmi_1 = weight / height ** 2
    return 'Obese' if bmi_1 > 30 else 'Overweight' if bmi_1 > 25 else 'Normal' if bmi_1 > 18.5 else 'Underweight'

def bmi(w, h):
    if w/h**2 <=18.5:
        return 'Underweight'
    elif w/h**2 <=25.0:
        return 'Normal'
    elif w/h**2 <=30.0:
        return 'Overweight'
    elif w/h**2 >30:
        return 'Obese'

def bmi(weight, height):
    a = weight / height ** 2
    if (a > 30):
        return 'Obese'
    if a >= 25:
        return 'Overweight' 
    if a >= 18.5:
        return 'Normal'
    return 'Underweight' 

def bmi(weight, height):
    BMI=(float(weight) / float(height ** 2))
    
    if BMI<=18.5: return "Underweight"
    elif BMI<=25.0: return "Normal"
    elif BMI<=30.0: return "Overweight"
    else: return "Obese"


def bmi(weight, height):
    bmi=weight/height**2
    float(bmi)
    if bmi<=18.5:
        return 'Underweight'
    elif bmi<=25.0:
        return 'Normal'
    elif bmi<=30.0:
        return 'Overweight'
    elif bmi>30.0:
        return 'Obese'
    else:
        return 'What'

def bmi(weight, height):
    bmi = weight / pow(height, 2)
    return ['Underweight', 'Normal', 'Overweight', 'Obese'][(bmi > 18.5) + (bmi > 25.0) + (bmi > 30)]

def bmi(weight, height):
    bmi = weight / height ** 2
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25.0:
        return "Normal"
    elif bmi <= 30:
        return "Overweight"
    elif bmi > 30:
        return "Obese"
    else:
        return "Error"

def bmi(weight, height):
    body = weight / height ** 2
    if body <= 18.5:
        return "Underweight"
    elif body <= 25.0 :
        return "Normal"
    elif body <= 30.0 :
        return "Overweight"
    elif body > 30 :
        return "Obese"

def bmi(weight, height):
    bmi_i = weight / height ** 2
    if bmi_i <= 18.8:
        return "Underweight" 
    if bmi_i <= 25.0:
        return "Normal"
    if bmi_i <= 30.0:
        return "Overweight" 
    if bmi_i > 30:
        return "Obese"

def bmi(weight, height):
    bmi_res = weight/height**2
    if bmi_res <= 18.5:
        return "Underweight"
    elif bmi_res <= 25:
        return "Normal"
    elif bmi_res <= 30:
        return "Overweight"
    else:
        return "Obese"

def bmi(w, h):
    s =  w/h ** 2
    if s <= 18.5:
        return "Underweight"
    if s <= 25:
        return "Normal"
    if s<= 30:
        return "Overweight"
    return "Obese"

def bmi(weight, height):
    bmi = weight/(height ** 2)
    if bmi <= 18.5:
        risultato = "Underweight"
    elif bmi <= 25.0: 
        risultato = "Normal"
    elif bmi <= 30.0: 
        risultato = "Overweight"
    else: 
        risultato = "Obese"
    return risultato

def bmi(weight, height):
    #your code here
    bmi = weight/height ** 2
    if bmi <= 18.5:
        resultato = "Underweight"
    elif bmi <= 25:
        resultato = "Normal"
    elif bmi <= 30:
        resultato = "Overweight"
    else:
        resultato = "Obese"
    return resultato

def bmi(weight, height):
    bmi_x = weight / height**2
    if bmi_x <= 18.5:
        return "Underweight";
    elif bmi_x <= 25.0:
        return "Normal";
    elif bmi_x <= 30.0:
        return "Overweight";
    else:
        return "Obese";

def bmi(weight, height):
    bmi = weight / height ** 2
    res = None
    if bmi <= 18.5:
        res = "Underweight"
    elif bmi <= 25:
        res = 'Normal'
    elif bmi <= 30:
        res = 'Overweight'
    else:
        res = 'Obese'
    return res

def bmi(weight, height):
    a = float(weight)
    b = float(height)
    b_m_i = a / b ** 2
    if b_m_i <= 18.5:
        return "Underweight"
    if b_m_i <= 25.0:
        return "Normal"
    if b_m_i <= 30.0:
        return "Overweight"
    if b_m_i > 30:
        return "Obese"
    
    #return "Underweight" if b_m_i <= 18.5 else "Normal" if b_m_i <= 25.0 else "Overweight" if b_m_i <= 30.0  else "Obese" if b_m_i > 30


def bmi(weight, height):
    bmi = float(weight/height**2)
    
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25.0:
        return "Normal"
    elif bmi <= 30.0:
        return "Overweight"
    elif bmi > 30:
        return "Obese"
    else:
        pass

def bmi(weight, height):
    bmi = weight/(height*height)
    result = ""
    if bmi <= 18.5:
        result = "Underweight"
    elif bmi <= 25.0: 
        result = "Normal"
    elif bmi < 30.0:
        result = "Overweight"
    elif bmi > 30:
        result = "Obese"
    return result


def bmi(weight, height):
    b = weight/height/height
    if b <= 18.5: return 'Underweight'
    if b <= 25: return 'Normal'
    if b <= 30: return 'Overweight'
    return 'Obese'

def bmi(weight, height):
    bmi = weight / height ** 2
    return "Underweight" if bmi <= 18.5 else "Normal" if 18.5 < bmi <= 25.0 else "Overweight" if 25 < bmi <= 30.0 else "Obese" 

def bmi(weight, height):
    f = (weight / height)/ height
    if f <= 18.5:
        return "Underweight"
    elif f <= 25.0:
        return "Normal"
    elif f <= 30.0:
        return "Overweight"
    elif f > 30:
        return "Obese"

def bmi(weight, height):    
    bmi = weight / (height**2)
    print(weight,height,bmi)
    if bmi <= 18.5:
        return 'Underweight'
    elif bmi <= 25.0:
        return 'Normal'
    elif bmi <= 30.0:
        return 'Overweight'
    else:
        return 'Obese'

def bmi(weight, height):
    #your code here
    b=(weight/(height**2))
    if(b<=18.5):
        return "Underweight"
    elif(18.5<b<=25.0):
        return "Normal"
    elif(25.0<b<=30.0):
        return "Overweight"
    else:
        return "Obese"

def bmi(weight, height):
    bmi = (weight/height**2)
    if bmi <= 18.5:
        return "Underweight"
    if 18.5 < bmi <= 25:
        return "Normal"
    if 25 < bmi <= 30:
        return "Overweight"
    if bmi > 30:
        return "Obese"

def bmi(weight, height):
    bmi = weight / (height*height)
    return "Underweight" if bmi <= 18.5 else("Normal" if bmi <= 25.0 else("Overweight" if bmi <= 30 else "Obese")) 

def bmi(weight, height):
    text = ["Overweight", "Normal", "Underweight", "Obese"]
    bmi = weight / (height**2)
    print(bmi)
    index = bool(bmi<=18.5) + bool(bmi<=25) + bool(bmi<=30)
    print(bool(bmi<=18.5), bool(bmi<=25), bool(bmi<=30), bool(bmi > 30))
    print(index)
    return text[index-1]

def bmi(weight, height):
    bmi = round(weight / height / height, 2)
    if bmi <= 18.5:
        return "Underweight"
    if bmi <= 25.0:
        return "Normal"
    if bmi <= 30.0:
        return "Overweight"
    return "Obese"

def bmi(weight, height):
    beem = round((weight/height**2),1)
    print(beem)
    if 18.5 >= beem:
        return "Underweight"
    elif 25.0 >= beem > 18.5:
        return "Normal"
    elif 30.0 >= beem > 18.5:
        return "Overweight"
    else:
        return "Obese"
        


def bmi(w, h):
    b = w/(h*h)
    if b <= 18.5: return "Underweight"
    if b <= 25.0: return "Normal"
    if b <= 30.0: return "Overweight"
    if b > 30: return "Obese"

def bmi(weight, height):
    b = weight/(height**2)
    if b > 30:
        return 'Obese'
    else:
        if b <= 25:
            if b <= 18.5:
                return 'Underweight'
            else:
                return 'Normal'
        else:
            return 'Overweight'

def bmi(w, h):
    p = round(w // h // h, 1)
    return "Underweight" if p <= 18.5 else "Normal" if p <= 25.0 else "Overweight" if p <= 30 else "Obese"

def bmi(weight, height):
    a = weight / height ** 2
    if a <= 18.5:
        return "Underweight"  
    elif a <= 25.0:
        return "Normal"
    elif a <= 30.0:
        return "Overweight"
    elif a > 30:
        return "Obese"
    return "You are Grasshopper"
    #your code here


def bmi(weight, height):
    bmi = weight / (height ** 2)
    if bmi <= 18.5:
        return "Underweight"
    elif bmi <= 25.0:
        return "Normal"
    elif bmi <= 30.0:
        return "Overweight"
    elif bmi > 30.0:
        return "Obese"
    else:
        print("wrong input")
    #your code here


def bmi(weight, height):
    bmi_score = weight/height**2
    print(bmi_score)
    if bmi_score <= 18.5: return "Underweight"
    elif bmi_score <= 25.0: return "Normal"
    elif bmi_score <= 30: return "Overweight"
    else: return "Obese"

def bmi(weight, height):
    bmi = (weight/(height**2))
    print(bmi)
    
    if bmi <= 18.5:
        result = "Underweight"
    elif bmi <= 25:
        result = "Normal"
    elif bmi <= 30:
        result = "Overweight"
    elif bmi > 30:
        result = "Obese"
    
    return result

def bmi(weight, height):
    x = weight / height ** 2
    return "Obese" if x > 30 else "Overweight" if x > 25 else "Normal" if x > 18.5 else "Underweight"

def bmi(weight, height):
    x = weight / height**2
    if x <= 18.5:
        return "Underweight"
    if x <= 25:
        return "Normal"
    if x <= 30:
        return "Overweight"
    if x > 30:
        return "Obese"

def bmi(weight, height):
    bmi = weight / pow(height, 2)
    
    if bmi <= 18.5:
        output = 'Underweight'
    elif bmi <= 25:
        output = 'Normal'
    elif bmi <= 30:
        output = 'Overweight'
    else:
        output = 'Obese'
        
    return output

def bmi(weight, height):
    b = weight / (height * height)
    health = {
        18.5: 'Underweight',
        25.0: 'Normal',
        30.0: 'Overweight',
    }
    for i in list(health.keys()):
        if b <= i:
            return health[i]
    return 'Obese'


def bmi(weight, height):
    #your code here
    bmi = weight / height ** 2
    if bmi > 30:
        result = "Obese"
    elif bmi > 25:
        result = "Overweight"
    elif bmi > 18.5:
        result = "Normal"
    else:
        result = "Underweight"
    
    return result

def bmi(weight, height):
    are_you_fat = (weight) / (height**2)
    if are_you_fat <= 18.5:
        return 'Underweight'
    elif are_you_fat <= 25.0 and are_you_fat > 18.5:
        return "Normal"
    elif are_you_fat <= 30.0 and are_you_fat > 25.0:
        return "Overweight"
    else:
        return "Obese"

def bmi(weight, height):
    score = float((weight / (height ** 2.0)))
    if score <= 18.5:
        return "Underweight"
    elif score <= 25.0:
        return "Normal"
    elif score <= 30.0:
        return "Overweight"
    else: 
        return "Obese"


def bmi(weight, height):
    calculation =weight/height**2
    if calculation <=18.5:
        return 'Underweight'
    if calculation <= 25.0:
        return 'Normal'
    if calculation <= 30.0:
        return 'Overweight'
    if calculation > 30:
        return 'Obese'

def bmi(weight, height):
    bmi = weight / height ** 2
    
    if bmi <= 18.5:
        r = "Underweight"
    elif bmi <= 25:
        r = "Normal"
    elif bmi <= 30:
        r = "Overweight"
    else:
        r = "Obese"
    return r

def bmi(w, h):
    return "Underweight" if w/(h**2)<=18.5 else "Normal" if w/(h**2)<=25 else "Overweight" if w/(h**2)<=30 else "Obese"

def bmi(w, h):
    b = w / (h ** 2)
    if b > 30:
        return "Obese"
    elif b <= 18.5:
        return "Underweight"
    elif b <= 25.0:
        return  "Normal"
    elif b <= 30.0:
        return "Overweight"

def bmi(weight, height):
    bmi_is = weight/(height**2)
    if bmi_is <= 18.5:
        return 'Underweight'
    elif 18.5 < bmi_is <=25.0:
        return 'Normal'
    elif 25.0 < bmi_is <=30.0:
        return 'Overweight'
    else:
        return 'Obese'


def bmi(weight, height):
    result = float(weight / height ** 2)
    if result <= 18.5:
        return "Underweight"
    elif result <= 25.0:
        return "Normal"
    elif result <= 30.0:
        return "Overweight"
    elif result > 30.0:
        return "Obese"

def bmi(weight, height):
    bmi = weight / height ** 2
    if bmi <= 18.5:
        return 'Underweight'
    elif bmi <= 25:
        return 'Normal'
    elif bmi <= 30:
        return 'Overweight'
    elif bmi > 30:
        return 'Obese'
    else:
        return None 

def bmi(weight, height):

    bmi = weight*10 // (height**2)

    if bmi in range(185): return 'Underweight'
    elif bmi in range(185, 250): return 'Normal'
    elif bmi in range(250, 300): return 'Overweight'
    elif bmi > 300: return 'Obese'

def bmi(weight, height):
    body_mass=weight/height**2
    result=""
    if body_mass<=18.5:
        result="Underweight"
    elif body_mass<=25.0:
        result="Normal"
    elif body_mass<=30.0:
        result="Overweight"
    else:
        result="Obese"
    return result

def bmi(weight, height):
    stages_of_life = ['Underweight', 'Normal', 'Overweight', 'Obese']
    BMI = weight / height ** 2
    pointer = 0 if BMI <= 18.5 else 1 if BMI <= 25 else 2 if BMI <= 30 else 3
    return stages_of_life[pointer]