title: Control Structures and Functions inside lambda
body: <p>Create a lambda function <code>greater</code>, which takes two arguments x and y and return x if x>y otherwise y. input value is (9,3)</p>
  
  <pre><code>greater= lambda a,b:a&gt;b
  if a&gt;b:
      print(a)
  else:
      return b
  print(greater(a,b))
  </code></pre>
  
  <blockquote>
    <p>File "/code/source.py3", line 11<br>
        return b
           ^
    SyntaxError: 'return' outside function</p>
  </blockquote>
  
  <p>Even I am getting error in return statement.
  I have to only get the output as value but I am getting value with True.</p>