This code should ask the user for an input and if they do not enter one of five strings then it should keep asking until they do. However when I added the while loop to accomplish this it does not recognize the valid inputs, it still keeps looping the input
def main():
print('----- AVATAR -----')
avatar = input('Select an Avatar or create your own:\n')
#if input is not one of these V then it should keep asking
#if input is one of these, go to if statements
while (avatar != 'exit' or avatar != 'Jeff' or 'custom' or 'Chris' or 'Adam'):
avatar = input('Select an Avatar or create your own:\n')
if avatar == 'exit':
return avatar
elif avatar == 'Jeff':
hat('both')
face("True", "0")
arm_style("=")
torso_length(2)
leg_length(2)
shoe_style("#HHH#")
elif avatar == 'Adam':
.....
And then there are elif statements for all 5 valid inputs