I've been trying to find resources on how to read one-liner codes in Python, but most of the articles, StackOverFlow questions show already completed one-liners and most of them have little to no explanation of how it's constructed and what is the equivalent of the one-liner as a multi-line code.
Also the examples that I've seen that does explain a little bit are very simple examples.
But it's harder for me to read an example like the following:
Example:
var = [x for x in ip_networks if x in visited or (visited.add(x) or False)]
How do you read this line? And how is does it look as a multi-line code?