Question: Python help! I need help getting my code to increment the value. It keep calculating the range over the same number and not moving up!

Python help! I need help getting my code to increment the value. It keep calculating the range over the same number and not moving up! this is the question

Write a program named q1() that prompts the user for the starting and ending distance in Kilometers (km), and an increment value. It should then print the conversion table showing values for Kilometers, Miles (M) and Feet (ft). Each value should be displayed as they are calculated.

and this is the code i have right now

start_km = input("Enter the Starting Kilometers (km): ") start_km = int(start_km) end_km = input("Enter Ending Kilometers (km): " ) end_km = int(end_km) increment = input("Increment value: ") increment = int(increment) km = start_km M = km*(.621371) ft = M*(5280) print("km", " ", "M", " ", "ft") print("==========================") for i in range(start_km,end_km+1,increment): print( km, " ", M, " ", ft)

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!