I have a list of list like follows:
lists = [['a', 'b'],['c', 'd']]
I want to input an element between a and d. Then search for the list that contains that element and print it, like this:
request = input('Input character: ')
if request in lists:
print() #list that contains the character the user inputted
So if the user inputs 'a', I want it to print the list ['a', 'b']. How can I do that?