Skip to content
Advertisement

Tag: list-comprehension

Recursive Function to List Comprehension

So I have the following simple function that converts a dictionary to a list of tuples. I was curious if there is a way to do this with list comprehension. I know this would not be good form code-wise, but I would like to just understand if it is possible if we do not know the depth. Answer You can

Advertisement