Write a Python function that accepts a measurement value in inches and returns the equivalent in feet


Topic: Write a Python function that accepts a measurement value in inches and returns the equivalent in feet

Solution

def inches_to_feet(inches):
    if inches < 12:
        return 0
    return inches/12



List all Python Programs