def height (t):
if not t:
return 0 # (1)
elif not t.nodes:
return 1 # (2)
else:
return 1 + max(height(n) for n in t.nodes) # (3)
hello guys some one can help me and change this function to pipline? using map , filter , lambda
you don't need to write def height you need to use only with lambda map filter (PIPLINE)