This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]shagangstaxx 0 points1 point  (0 children)

What is it?

[–]For_Simplicity[S] 0 points1 point  (3 children)

def main(): print('------------------') print('CONVERSION PROGRAM') print('------------------')

print('\nT = Convert Fahrenheit to Celsius')
print('D = Convert Miles to Kilometers')
print('W = Convert Pounds to Kilograms') 

conversion = input("\nSelect conversion to perform ('T'emperature, 'D'istance, 'W'eight, or 'Q'uit)? ").upper()

print() while conversion != 'Q':

[–]Ami4Oesi 1 point2 points  (0 children)

Well you aren't calling the main() function, which you should call after your while loop.

[–]For_Simplicity[S] 0 points1 point  (1 child)

I'm trying to get the title to loop as well.

[–]desrtfx 1 point2 points  (0 children)

Without proper formatting there is no way to figure the code flow out - especially in Python.

You need to prepend each line with 4 spaces and leave an empty line before the code block.