Is there a short way to call a function twice or more consecutively in Python? For example:
do() do() do()
maybe like:
3*do
You may try while loop as shown below;
def do1(): # Do something def do2(x): while x > 0: do1() x -= 1 do2(5)
Thus make call the do1 function 5 times.