I am trying to loop the input of the user until a correct value is equal to one item in the list.
name = ['peter', 'jay']
user = str(input("Enter UserID: "))
if user == name:
print ("welcome back" + user")
else:
print ("wrong input, you have 3 more tries, please try again")