Aug-23-2020, 07:03 PM
Hi, I have a following issue. I need to append a function's output into a list. See a simplified code bellow:
def output(n): i = n for i in range(0, n-1): i +=1 print(i) output(10) arr = [] arr.append(output(10))However, my arr list is still empty. How can I fix it please? Thanks a lot!