I have run into an issue that totally baffles me. Everything I feed into this program comes back with a value of -2:
def score_mod(score): #This is meant to come up with the adjustment for a given ability score
if score == 2 or 3:
mod = -3
if score == 4 or 5:
mod = -2
if score == 6 or 7 or 8:
mod == -1
if score == 9 or 10 or 11 or 12:
mod == 0
if score == 13 or 14 or 15:
mod == 1
if score == 16 or 17:
mod == 2
if score == 18:
mod == 3
return mod
while True:
feed = input("Number")
print(score_mod(feed))
again = input("Again? Y/N")
again = again.capitalize()
if again == "Y":
continue
if again == "N":
break