0
Python Else-If
My code so far: n = input odd = (range(3,100,2)) even = (range(2,100,2)) if n in odd: print("Weird") else: print("Not Weird") What I'm trying to do should be self-explanatory. For some reason, I can't get it to give me the actual ranges. Everything, no matter what I input, is coming back as "Not Weird." Can anyone point out what the problem is and explain it to me, please? Thanks in advance! edit1: changed "is" to "in." edit2: changed "n = input" to "n = int(input())" Problem solved!
2 Respuestas
+ 2
Yes! Thank you so much!
+ 1
I changed "is" to "in," but I'm still having the same problem.