From my Python console
>>> numbers = [1,2,3] >>> [print(x) for x in numbers] 1 2 3 [None, None, None]
Why does this print
An ugly way of doing this is _=[print(i) for i in somelist] It does work but is not encouraged:)
_=[print(i) for i in somelist]