def imperial_to_metric(height):
    """
    Convert imperial (feet and inches) to metric (metres).
    Expect formatted as 3'4" (3 feet and 4 inches) or 3' (3 feet).
    Return float
    """
    inches = float(height.split("'")[0].strip()) * 12
    if '"' in height:
        inches += float(height.split("'")[-1].replace('"', "").strip())
    return round(inches/39.3701, 3)