Ask Question

How to convert metres to inches and feet in python

+2
Answers (1)
  1. 21 January, 16:50
    0
    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)

    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “How to convert metres to inches and feet in python ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers