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 == 4 or 3:
print "You got away safely!"
fleechance is constantly printing as 3 or 4, but I continue to get the result "You failed to run away!" ,can anyone tell me why this is happening?
if fleechance == 1 or fleechance == 2. It's equivalent to sayingif fleechance ==1: if 2, which will always be true becauseif 2is true. - wkl