A have a real problem (and a headache) with an assignment...
I\'m in an introductory programming class, and I have to write a function that, given a list, will retur
easy with recursion
def flat(l): depths = [] for item in l: if isinstance(item, list): depths.append(flat(item)) if len(depths) > 0: return 1 + max(depths) return 1