list comprehension squaring odds
<p>This is what I am supposed to do:</p>

<blockquote>
  <p>Given the variable <code>nums</code>, whose value is a list of integers, write an assignment statement that assigns to the variable <code>square_odds</code> the list of the squares of the odd numbers in the list <code>nums</code>. </p>
  
  <p>You must use list comprehension.</p>
</blockquote>

<p>Here is what I have so far, I know the range part is wrong but what is it supposed to look like?</p>

<pre><code>nums = [2 ** square_odds for square_odds in range(nums) if square_odds != x%2]
</code></pre>

<p>I think there are other places that are wrong but I am not sure.</p>

<p>i changed it to </p>

<pre><code>nums = [square_odds**2 for square_odds in range(100) if square_odds%2 != 0] 
</code></pre>

<p>i received the message</p>

<p>Wrong: you have not assigned to square_odds.</p>
