I'm learning Python, and decided to make a little dice game. It functions 100% as intended, just want to make some small changes to make it more polished up, such as not just ending if you input something that isn't supported.
if answer == 'y':
dice = raw_input('What sorta dice? (D4, D6, D12, D20)')
--if dice = ANYTHING THAT ISN'T A DICE
dice = raw_input('I don't have that, try again!')--
else:
if answer == 'n':
print 'Alright, come back anytime!'
exit()
I just can't find an answer to the if dice = problem, I've googled for about an hour and chances are I just don't know the right terminology to ask the question properly. I basically want it to state something along the lines of "nope thats not right" then loop back up to "what sorta dice"
Cheers for any input guys.