Open laserlab opened 1 month ago
Can list comprehension be thought of as a function?
More interestingly, what about a dictionary? It assigns a value to every key, so in the mathematical sense, it is a function, but do we consider it a function here?
I just want to clarify that a list is a data type in Python and not a function.
so this:
does not return a function.