Question: #input input('Please enter the height to be converted.') feet = int(input('First, enter the feet: ')) inch = int(input('Now, enter the inches: ')) # process inches

#input input('Please enter the height to be converted.') feet = int(input('First, enter the feet: ')) inch = int(input('Now, enter the inches: ')) # process inches = feet * 12 + inch cm = float((feet * 12 + inch)* 2.54) # output print('Your height is',feet,'feet',inch,'inches or',inches,'inches. That is',format(cm,'.2f'),'cm.')

How can i make the output print this for the feet:

Please enter the height to be converted. First, enter the feet: 2 Now, enter the inches: 30 Your height is 4 feet 6 inches, or 54 inches. That is 137.16 cm.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To achieve the desired output based on the provided code you need to adjust the logic to handle the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!