title: While executing this code I am getting two output. One is correct one and the other is NONE. Is there any error in the code?
body: <p>I just started to learn python. While learning about the lambda function, I tried to execute this code. 
  I am getting two outputs. one is correct and other says NONE.</p>
  
  <p><a href="https://i.stack.imgur.com/GXIiD.png" rel="nofollow noreferrer">Here is the code and its output.</a></p>