75.1k views
5 votes
How to convert metres to inches and feet in python

1 Answer

0 votes

Answer:

def Convert1(met):

inch = 39.37 * met

feet = 3.2804 * met

print ("In Inch:", round(inch, 2))

print ("In Feet:", round(feet, 2))

# Code for running function

met = 20

Convert1(met)

Step-by-step explanation:

The program is self-explanatory. And we just need to consider 1 inch = how many meters, and one foot = how many. And that is it. One inch = 39.37 meters, One Feet = 3.2804 meter. So we multiply this my number of meters to get value in Inch and feet. And finally, we round off the decimal value to 2 decimal places. And that gives us the answer. Round function rounds the decimal value to several decimal places mentioned.

User Kamesha
by
5.1k points