So say I have a dictionary, users, and it has another dictionary named after their uid and contains information like emails, names, etc. Say I want to search for their name, and want to get their uid. Any sane way to do it?
An example of the dictionary structure:
users = {1: {"name": "John Doe", "email": "johndoe@gmail.com"},
2: {"name": "Jane Doe", "email": "janedoe@gmail.com"}}
1 Answer