```py def decompress(data): lst = [] if type(data) != list: lst.append(data) return lst else: print(f'before iter {data},') for i in data: print(f'start iter {i},') #print(i) if type(i) != list: lst.append(data) else: #print(i) lst += decompress(i) return lst``` When I pass in a simple nested list `[[None,None],[None,None]]` as data, it gives the error in the title. I've used print methods to see what is being used to iterate, but nothing seems to be wrong? Please help
What does "decompress" mean? Iis `[[1, 2], [3, [4]]]` supposed to become `[1, 2, 3, 4]`? That's usually called "flattening the list"