Help I have been at this for days and I do not understand what I am doing wrong. the script will not run. :huh: also I do not have any errors and when I try and run it, it shuts down immeditly. This is my first time doing this.
#The program will ask the user to select from a menu. input("Temperature Convertor") def menu(): print("n\1. Celsius Temperature to Fahrenheit Temperature") print("2. Fahrenheit Temperature to Celsius Temperature") print("3. Exit") choice = raw_int(input(" Please Enter a Selection: ")) return choice #Once a selection is made from the menu, the user will be able to covert #Celsius and Fahreheit temperature. #The coversion formula for Fahrenheit to Celsius is C= ((F-32) * 5/9) def toCelsius (F) : return int((F - 32) / (5/9) ) #The coversion formula for Celsius to Fahrenheit that is being used is F = ((9/5 * C )+ 32). def toFahrenheit (C) : return int((C * 9/5) + 32 ) #The program will ask the user to enter a temperature in Celsius or Fahreheit #depending on what the user selected and then display the #temperature converted to Fahreheit or Celsius. def main() : choice = Menu () while choice != 3 : if choice == 1 : # convert C to F C = float(input( " Please enter degrees in Celsius that you would like to convert: ")) Print (str (C) + " C = " + str(toFahrenheit (C)) + "F" ) elif choice == 2 : # convert F to C F = float(input( " Please enter degrees in Fahrenheit that you would like to convert: ")) print (str (F) + " F = " + str(toCelsius (F)) + "F" ) else: print ( " Invalid Entry " ) choice = Menu () input("\n\nPress the return key to exit.")