I am doing a program that will convert units from Imperial to Metric, and vice versa. So far, I have only gotten to the temperature conversions. When I run the code, it works fine until it gets to the if statements for "if temputit == ____. No matter what I input, even if it is gibberish, it will still run the Fahrenheit statement (The top one). Here is my code:
unit = input(print("What would you like to convert (Temperature, Distance, Length, Wheight, Volume)? "))
if unit == 'Temperature':
tempunit = input(print('Do you want to convert Celsius or Fahrenheit?'))
if tempunit == "Fahrenheit" or "fahrenheit":
ftemp = int(input(print("Type the number you want to convert: ")))
ftemp_new = (ftemp - 32) * 5/9
print(ftemp_new, "°C")
elif tempunit == "Celsius" or "celsius":
print("ok")