Answers for "feet to meter python"

1

feet to meter python

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)
Posted by: Guest on August-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language