Say we have a function func and in that function there's a list of n items. The n number changes depending on the argument(s) given to func. There's also a lambda function in func (created with eval any time func is called) that takes n number of arguments and returns something. Is there any way you could pass the items from the list to the lambda function (items from the list and arguments in lambda are always equal to each other in number, the only difference is that list items are wrapped in [] and arguments are not)? You can't simply insert the list into lambda since it sees it as one argument when in fact the list might have 3, 30 or any number of arguments. A simplified picture:
def func(*args):
lst = [n items where n changes depending on *args]
lambda n arguments/items: do sth