title: How i can change function to one line in python
body: <pre><code>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)
  </code></pre>
  <p>hello guys some one can help me and change this function to pipline?
  using map , filter , lambda</p>
  <p>you don't need to write def height
  you need to use only with lambda map filter (PIPLINE)</p>