Ask Question
9 May, 07:26

How to convert metres to inches and feet in python

+2
Answers (1)
  1. 9 May, 09:17
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers