Is there a short way to call a function twice or more consecutively in Python? For example:
do() do() do()
maybe like:
3*do
My two cents:
from itertools import repeat list(repeat(f(), x)) # for pure f [f() for f in repeat(f, x)] # for impure f