I don't know how to make the script keep asking for the pet's name if I enter a name that is not in the myPets list. So if I type in Tiny ( a name not in the list) the script runs and closes after it prints out ('I do not have a pet named '+ name) 'I do not have a pet named Tiny.
I want to put a for loop in the script so it will ask me again for an input.
myPets = ['Zophie', 'Pooka', 'Fat-tail']
print('Enter Pets Name:')
name = input()
if name not in myPets:
print('I do not have a pet named '+ name)
else:
print(name + ' is my pet.')