title: While loop in Python using Lambda
body: <p>Here is my simple demo while loop. </p>
  
  <pre><code>count = 0
  while count &lt; 5:
     print 'The count is:', count
     count = count + 1
  </code></pre>
  
  <p>Now i want to change the normal while loop using lambdas.</p>
  
  <pre><code>def func():
      count = 0
      print 'The count is:', count
      count += 1
  
  a = lambda count: (count &lt; 5 and func() )
  print a
  </code></pre>
  
  <p>What i am doing wrong ?</p>