I'm trying to set up a 'Fahrenheit to Celsius' and 'Celsius to Fahrenheit' calculator that would allow the user to select if they want Celsius converted to Fahrenheit or visa versa but I'm getting an invalid syntax error and I'm not quite sure why.The code I'm using// The 'Invalid Syntax Error' I understand the problem could be pretty basic, I'm relatively new to python just.
CelsiusorFarenheit = input("Would you like Celsius to Farenheit or Farenheit
to Celcius?")
if CelsiusorFarenheit == "celsius" or "Celsius":
def Celsius():
centToFaren = int(input("Enter a temperature in Celsius: "))
Farenheit= 9.0/5.0 * centToFaren+32
print ("Temperature:", centToFaren, "Celsius =", Farenheit, "F")
else CelsiusorFarenheit == "farenheit" or "Farenheit":
def Farenheit():
farenToCent = int(Input("Enter a temperature in Farenheit: "))
Celcius=(farenToCent-32)*5.0/9.0
print("Temperature:", centToFaren, "Fahrenheit =", Celcius, "C")