I'm a beginner in Python and I'm trying to write an IF statement with multiple OR conditions in the expression. My problem is that the expression is only "True" for the first OR condition.
def rna_length(mrna): if (mrna[-3:]) == ("UGA" or "UAA" or "UAG"): return print("TRUE!") else: return print("False")
rna_length('AUGAGGCACCUUCUGCUCCUUAA')
I was expecting True after running the code but the code is printing False. Kindly help me understand my mistake.