I'm stuck on this page. I did not get the logic on how the tabs change levels.
def print_lol(a_list, level): """Prints each item in a list, recursively descending into nested lists (if necessary).""" for each_item in a_list: if isinstance(each_item, list): # increases the level value, in case it is 2, it will be 3 next loop and so on. print_lol(each_item, level+1) else: # How it works here? #How does it interact with the number of tabs? I really don't get it. # Where is implicit the number of times that the next level will do? for l in range(level): print("\t", end='') print(each_item)