Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started