Learn Python the hard way exercise 5 EC4
Try to write some variables that convert the inches and pounds to centimeters and kilos. Do not just type in the measurements. Work out the math in Python.


After struggling a while I managed to do something in Python:

    inches = 19
    centimeters = inches * 2.54
    print "%r inches equals %r centimeters." % (inches, centimeters)
    
    
    pounds = 180
    kilos = pounds /2.2
    print "%r pounds equals %r kilos." % (pounds, kilos)


While the inch to cm works great, I get a weird result on pounds to kilos(wolframalpha says it should be 81.65kg.) What am I doing wrong and how can I fix this in order to get the right result?
Thanks!

Learn Python the hard way exercise 5 EC4
===

Try to write some variables that convert the inches and pounds to centimeters and kilos. Do not just type in the measurements. Work out the math in Python.


After struggling a while I managed to do something in Python:

    inches = 19
    centimeters = inches * 2.54
    print "%r inches equals %r centimeters." % (inches, centimeters)
    
    
    pounds = 180
    kilos = pounds /2.2
    print "%r pounds equals %r kilos." % (pounds, kilos)


While the inch to cm works great, I get a weird result on pounds to kilos(wolframalpha says it should be 81.65kg.) What am I doing wrong and how can I fix this in order to get the right result?
Thanks!
