Write a Python function to convert height (in feet and inches) to centimeters


Topic: Write a Python function to convert height (in feet and inches) to centimeters

Solution

def height_converter(h_ft, h_inch):
    h_inch += h_ft * 12
    h_cm = round(h_inch * 2.54, 1)
    return h_cm



List all Python Programs