Okay so I basically want my code to work by asking the user for input on ROLL variable, if it's a number that is specified as a die (6,8,10,12,20) then that all works, it picks a random number and outputs it, easy. However I cannot make the loop quit, so it says while ROLL is not equal to 'quit', do the things. I'll post the code below, but idk how to make it work so that when I enter 'quit' it closes, right now when I do it it outputs the 'else' statement.
#!/usr/bin/env Python3
ROLL = ''
while ROLL != 'quit':
import random
ROLL=input("What sided Die would you like to roll(You may enter quit to close)? ")
if ROLL == 6:
print(random.randint(1, 6))
elif ROLL == 8:
print(random.randint(1, 8))
elif ROLL == 10:
print(random.randint(1,10))
elif ROLL == 12:
print(random.randint(1, 12))
elif ROLL == 20:
print(random.randint(1, 20))
else:
print("That's not an option please choose a die...")
print("Thank you")