Question: How do I make my program looks like this? I have trouble with formatting, space, and decimals. inches = int(input(Input distance in inches: )) print(

How do I make my program looks like this? I have troublewith formatting, space, and decimals. inches = int(input("Input distance in inches: "))How do I make my program looks like this?

I have trouble with formatting, space, and decimals.

inches = int(input("Input distance in inches: ")) print( "inches:", inches) feet = inches / 12 print("feet:",feet) yard = feet/3 print("yard:",yard) mile = yard/1760 print("mile:",mile) km = mile*(1.60934) print("km:", km) m=km*1000 print("m:",m) cm=m*100 print("cm:", cm) #yards = ft / 3 #miles = ft / 5280 #print("feet:".format(feet,"1,.2f")). #print("The distance in yards is", yards) #print("The distance in miles is", miles) Here is a sample run of the modified version, with user input bolded: - - - - - - - - Enter a size in inches: 2500 ----------------------------- Inches to Centimeters --- ----- --- in: 2500.00 ft: 208.33 69.44 0.04 km: 0.06 m: 63.50 cm: 6349.98 yd: mi

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!