ноги до измерителя питона

input1 = input('feet to meter or meter to feet? ')

if input1 == 'feet to meter':
    feet = float(input('enter feet: '))
    meter = feet *0.3048
    print(meter)

if input1 == 'meter to feet':
    meter = float(input('enter meter: '))
    feet = meter/0.3048
    print(feet)
Worried Warbler