0

Here's what I'm trying to do

-> Ask "what class do you want? (respond 1 for human, 2 for orc, 3 for elf, 4 for goblin, 5 for droid, 6 for ghost) ->player answers with 1 - 6. If not, the question is repeated with "that number is not acceptable, please choose again"

Here's the code I've done that's relevant


charChoiceNumber = int(input())

if charChoiceNumber > 0 and charChoiceNumber <= 6: print ("okay now lets choose your profession") if charChoiceNumber < 1 or charChoiceNumber > 6: print("that number is not acceptable, please choose again")


So yeah, I want the question to be repeated until an acceptable answer is given. I'm very new to Python and this is for a class I've recently started. Thanks

0 Answers0