title: [float(i) for i in lst]
body: <p>prorgamming newbie--I was looking for answers to an exercise I was doing and got my answers from <a href="https://stackoverflow.com/q/1614236/731819">here</a>. My question is this--from that thread, the one chosen as best answer, was this code</p>
  <pre><code>[float(i) for i in lst]
  </code></pre>
  <p>The code did what it was supposed to do, but when I tried to get to that new list, I am getting errors</p>
  <pre><code>&gt;&gt;&gt; xs = '12 10 32 3 66 17 42 99 20'.split()
  &gt;&gt;&gt; [float(i) for i in xs]
  [12.0, 10.0, 32.0, 3.0, 66.0, 17.0, 42.0, 99.0, 20.0]
  &gt;&gt;&gt; i
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  NameError: name 'i' is not defined  
  </code></pre>
  <p>How should I do it?</p>
  <p>Thanks!</p>