title: How to write a Lambda with a for loop in it
body: <p>I am trying to make an empty list the same length as the number of letters in a string:</p>
  
  <pre><code>string = "string"
  list = []
  #insert lambda here that produces the following:
  # ==&gt; list = [None, None, None, None, None, None]
  </code></pre>
  
  <p>The lambda should do the equivalent of this code:</p>
  
  <pre><code>for i in range(len(string)):
       list.append(None)
  </code></pre>
  
  <p>I have tried the following lambda:</p>
  
  <pre><code>lambda x: for i in range(len(string)): list.append(None)
  </code></pre>
  
  <p>However it keeps replying <code>Syntax Error</code> and highlights the word <code>for</code>.</p>
  
  <p><strong>What is wrong with my lambda?</strong></p>