For example, I'll make a dictionary like this:
a_dict = {'name': ('John', 'James'), 'animal': ('chicken', 'goat')}
Is there any way for me to scan a user input, for example, if the user input a goat
, I want to return a list like this:
a_list = [('animal', 'goat')]