9/7/22

From feet to inches

 You need to make a function that converts a foot value to inches.

1 foot has 12 inches.

Define a convert() function, that takes the foot value as argument and outputs the inches value.

feet = int(input())


def convert(t):
    print(12 * t)
convert(feet)

Blog Archive