I decided to learn Python over quarantine and I started playing around with inputs. I wanted to make a calculator that would change Fahrenheit to Celsius. Everything works, except it always prints out the result of No, even if I type Yes. Here is the code for reference:
def Fahrenheit_to_Celsius():
Fahrenheit = float (input("What temperature (in Fahrenheit) would you like to convert into
Celsius?"))
Celsius = (Fahrenheit - 32) * 5/9
print (Fahrenheit, "F is", Celsius, "C")
rounded_celsius = str (input("Would you like your Celsius degree rounded? Type 'Yes' or 'No'."))
if rounded_celsius == "NO" or "no" or "No":
print ("Ok, have a nice day!") #Always prints this, even if I put Yes
elif rounded_celsius == "Yes" or "YES" or "yes":
print (round(Celsius))
else:
print ("Ok, have a nice day!")
Fahrenheit_to_Celsius()
What can I do to make sure that the function prints out the result of Yes if the user types Yes? I am still a beginner, so every answer is appreciated!