Ask Question
4 November, 12:50

How to convert metres to inches and feet in python

+3
Answers (1)
  1. 4 November, 13:43
    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?
Get an answer to your question ✅ “How to convert metres to inches and feet in python ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers