Say I have a function, myfunc(*iterables)
and I want to do the following:
myfunc('abc','abc','abc')
but without repeating 'abc'
and using n
(=3
in the above example)
I have tried:
myfunc(['abc']*n)
However this gives
myfunc(['abc', 'abc', 'abc'])
which does not work.
Is there a simple way to do this?