I have a graph:
graph = [[1,3],[3,2],[2,1],[7,3],[4,2],[5,4],[6,5],[4,6]]
I would like to write a code (not loop) that could get entries from above graph that start with a certain number.
should give me a list of [[4,2],[4,6]]
I think it could be done with list filter or lambda, but I do not have yet experience in Python.