dimanche 18 août 2019

if-elif loop won't run

I am new and attempting to make a simple if-elif loop. It works in other parts of the code but this loop acts like there is no user input. It doesn't even throw an error code, it just runs the first if-body and then skips the elif.

I have tried using just if-else but that has the same effect. I have also tried including the code rather than calling the function, no difference. This is my first posted question so please feel free to make suggestions on how I should post to help other people understand me better.

run loop for reroll

reroll = input("Reroll? Y  or N:")

if reroll == "N" or "n":
    Do_Not_Reroll()
elif reroll == "Y" or "y":
    Reroll_user

Aucun commentaire:

Enregistrer un commentaire