Header Ads

Python - WAP to Convert Centimeters (cms) into Height (Ht) & Feet (ft) in Python - 13

This is a Python Code to Convert any value of Centimeters into Height (ht) and in Feet (ft) of any given Number using Python.

Source Code:
#!/usr/bin/python3

while True:

    cms = int(input("Enter a Value in Centimeters (cms) : "))

    inches = cms * 0.394
    feet = cms * 0.0328
    print ("The Length in Inches (ln) is : ", round(inches, 3))
    print ("The Length in Feet (ft) is : ", round(feet, 3))
 
    if (input("To Continue ['y'] : ") == 'y' ):
        
        continue
    else:
        break

Program Output: 


No comments