I'm having a hard time wrapping my head around in which direction I need my code to go in.
Basically, I need to use a loop (nested or not that's OK) to display to the user an inches
to centimeters conversion table. However, it's the user input I'm having trouble with.
I need this program to prompt the user where they want to start the conversion in inches,
and where they want to end the conversion in inches.
Here's what I got so far:
startconversion = input("Start conversion at (in): ") stopconversion = input("Finish conversion at (in): ") for startconversion in range(startconversion,stopconversion,6): print str(startconversion) +" inches", "is " + str(stopconversion*2.45) +" centimeters"
I don't know what to do to have this displayed correctly to the user. How it's running now is,
it only converts the stopconversion variable to centimeters, where I need it to convert
all the inches from startconversion to stopconversion .
That's my only problem right now. Sorry if i ran around in circles trying to describe it.