1
classes = input("There are three types of classes in this game. Warrior, Wizard and Hunter. Pick one.")

if classes == "Warrior" or "Wizard" or "Hunter":
    print ("Good choice.. the "+classes+" will dominate your opponents!")
else:
    print ("That's not a class! Pick again!")

#Basically, I want to add a loop so it'll ask the question again.

Keep in mind I am using Python-3

Resi Bank
  • 11
  • 2

2 Answers2

0
characters = ("Warrior", "Wizard", "Hunter")

while True:
  classes = input("There are three types of classes in this game. Warrior, Wizard and Hunter. Pick one.")
  if classes in characters:
    break
  else:
    print ("That's not a class! Pick again!")

print ("Good choice.. the "+classes+" will dominate your opponents!")
Barun Sharma
  • 1,452
  • 2
  • 15
  • 20
0
classes = input("There are three types of classes in this game. Warrior, Wizard and Hunter. Pick one.\n")

while classes not in ("Warrior", "Wizard", "Hunter"):
  print ("That's not a class! Pick again!\n")
  classes = input("There are three types of classes in this game. Warrior, Wizard and Hunter. Pick one.\n")

print ("Good choice.. the "+classes+" will dominate your opponents!\n")
brokenisfixed
  • 653
  • 1
  • 9
  • 21