I try to pass lists in a function as args but the results give me a None in the end. Can you explain to me why?
list_1 = [1, 2, 4]
list_2 = [3, 4, 2]
def total_list(*args):
for item in args:
for i in item:
print(i)
print(total_list(list_1, list_2))
Result:
1
2
4
3
4
2
None