n = [1, [2, [3, [4, 5]]], [6, [7, [8, [9]], 10]]]
In python, I want to write a nested function within the function 'print_list' that calls itself recursively for each sub-list. The nested function should have an additional parameter indent which keeps track of the indentation for each recursion level. when implementing print_list(n), it prints a nested list 'n' in the following format
print_list(n)
.1
.....2
.........3
.............4
.............5
.....6
.........7
.............8