On Thu, Dec 5, 2013 at 12:54 AM, Dario Bertini <berda...@gmail.com> wrote:
> >>> def height(tree): > ... if len(tree) == 0: > ... return 1 > ... else: > ... return 1+max(map(height, tree)) > bello, molto elegante l'uso di map con la funzione ricorsiva.
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python