I currently have the code:
fleechance = random.randrange(1,5)
print fleechance
if fleechance == 1 or 2:
print \"You failed to run away!\"
elif fleechance
The if
statement is working as designed, the problem is that order of operations is causing this code to do something other than that you want.
The easiest fix would be to say:
if fleechance == 1 or fleechance == 2:
print "You failed to run away!"
elif fleechance == 3 or fleechance == 4:
print "You got away safely!"