On Ex-5 Study drills of the book Learn Python the Hard Way, it states
Try to write some variables that convert inches and pounds to centimeters and kilos. Do not just type in the measurements. Work out the math in Python.
Till now, I have done this
inches = 1
centimeters = 1
convert = centimeters * 2.54
print inches
print centimeters
print "1 inch is %s centimeters." % convert
Now the above code will just display the conversion of 1 inch and I don't know how to change it so that when the user gives input in centimeters or inches, and it should display the correct conversion?
Can anyone help me with my doubt?