Could you please take a short look and tell me what's wrong with the code?
e = eval(input('enter 1 '))
f = eval(input('enter 3 '))
if e != 1 and f != 3:
print('you got it wrong!')
else:
print("correct")
So the problem here is if I enter 1 of 2 numbers correct, it says that it is correct but it shouldn't because I have an "and" operator ?
Of course I could change the code to something like this which would work fine:
if e == 1 and f == 3:
print('correct')
else:
print("you got it wrong!")
But on the other side I would like to understand what I'm doing wrong? Thanks :)