Sep-19-2019, 02:42 PM
You can get it by index if you return the values as a nested list
def my_func(list1,list2,list3): return [list1,list2,list3] p1 = my_func(list1 = ['BNKL', 'KPUI', 'HYNI'],\ list2 = ['Ty'],\ list3 = [6, 7, 8]) print(" The first list : ", p1[0])