Hi everyone, I'm trying to create a function that locates a number that is in a list of lists.
So I have my list called superlist= [[1,3,7,9],[2,8,3,5],[4,1],[6]]
and I want to create a function, locate(superlist, number)
such that for a chosen number, the output will give me which lists in the superlist that number belongs too.
For example, locate(superlist,1) should output list 1 and list 3.