Assuming i have a method definition like this do_stuff(*arg)
.
I have a list of values, ['a','b',...]
. How best can i pass the values of this list as individual arguments to the do_stuff
method as do_stuff('a','b',...)
?
I've unsuccessfully tried using list comprehension - do_stuff([str(value) for value in some_list])
I am hoping i don't have to change do_stuff()
to accept a list
Any pointers would be appreciated.