I'm having trouble with getting my python code to work...I am making a story based game and i want to check if the user has inputted a correct class. My code:
ClassPicked = False
#Player Stats
Energy = 1
Health = 1
print("Hello, welcome to this text based game")
while ClassPicked == False:
print("Please choose a class : Warrior or Mage")
classType = input()
#Failsafe to stop non roles to be selected
if classType != "Paladin" "Warrior" or "Mage":
print("You need to select a role")
if classType == "Paladin" "Warrior" or "Mage":
ClassPicked = True
print("You have selected", classType)
I need help as the while loop doesn't work, the user is just asked what class they would like to pick and no matter the input, the code will carry on