It runs with some tiny changes:
#python3 def menu(): print("1. Celsius Temperature to Fahrenheit Temperature") print("2. Fahrenheit Temperature to Celsius Temperature") print("3. Exit") return int(input(" Please Enter a Selection: ")) def toCelsius(F) : return int((F - 32) / (9/5)) def toFahrenheit(C) : return int((C * (9/5)) + 32) def main() : while True: choice = menu() if choice == 1 : C = float(input( " Please enter degrees in Celsius that you would like to convert: ")) print(str(C) + "C = " + str(toFahrenheit(C)) + "F\n\n") elif choice == 2 : F = float(input( " Please enter degrees in Fahrenheit that you would like to convert: ")) print(str(F) + "F = " + str(toCelsius(F)) + "C\n\n" ) else: break main()