I have a list called clients_list full of dictionaries such as this:
clients_list =
[
{'John Guy': [28, '03171992', 'Student']},
{'Bobby Jones': [22, '02181982', 'Student']},
{'Claire Eubanks': [18, '06291998', 'Student']},
]
How would I check to see if someone was in this list using the input answer? I have tried the code
elif answer in clients_list:
print(f'{answer} is in our database.')
But it does not seem to work properly.