[1.0, [1.0, [1.0, [0.25, [0.05, [0.01, [0.01, 0.01]]]]]]]
I am trying to flatten this list in python without using any modules not built into python 2. When I try to flatten it this error is raised:
TypeError: 'float' object is not iterable on line 19