I have a dictionary of names (Dan, Bianca, and Bob)
If the name is NOT found , I want to loop and ask for the name again.
How do I create a loop for this code??
name = input('Enter your name: ')
options = {'Dan': 1, 'Bianca': 2, 'Bob': 3}
key = name
print('Searching for ' + name + ' in the list...')
if key in options:
print(name + ' was found on the list')
found = True
print(found)
else:
print(name + ' was NOT found')
found = False
print(found)