I have several sampling functions that need to be called for a certain amount of times as in the following instruction:
samples = [do_sampling() for _unused in range(n_samples)]
I wonder, is there a more compact way to express that statement, especially by avoiding the _unused
variable?