You can return a tuple of lists, an use sequence unpacking to assign them to two different names when calling the function:
def f():
return [1, 2, 3], ["a", "b", "c"]
list1, list2 = f()
You can return a tuple of lists, an use sequence unpacking to assign them to two different names when calling the function:
def f():
return [1, 2, 3], ["a", "b", "c"]
list1, list2 = f()