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
Did it in one line of python :)
enjoy
def f(g,count=0): return count if not isinstance(g,list) else max([f(x,count+1) for x in g])