I would like to create a function that uses two variable length arguments. For example:
def my_func(*args1, *args2):
for i in args1:
do stuff
for j in args2:
do stuff
Is there a way in Python to use more than one *args? Thanks in advance for the help.
No, as there is no way to decide whether
means
Instead, simply let the function take two lists as arguments.