If you aren't trying to generate a list (or whatever sequence) then it is absolutely NOT more pythonic to use a comprehension. Using a comprehension for a side effect is an anti-pattern.
For example, the following is an example of what NOT to do:
So, do you actually want the list or do you just want a function to run several times with different inputs?
For example, the following is an example of what NOT to do:
[print(x) for x in range(10)]You aren't actually interested in the list you create, and are abusing comprehension syntax (which is completely unnecessary).
So, do you actually want the list or do you just want a function to run several times with different inputs?