title: sum of squares of the first n odd numbers
body: <p>I was given an assignment to find the sum of the squares of the first n odd numbers whereby n is given by the user.</p>
  
  <p>The assignment was;</p>
  
  <pre><code>The script only takes one input, so do not
  # include any input command below. The print commands below are already given.
  # Do not alter the print commands. Do not add any other prints commands.
  
  r = range(1, n + 1)         # prepare the range
  result = 0                  # initialise the result
  for k in r:                 # iterate over the range
      result = result + k     # update the result
  
    compute the sum of the squares of the first n odd numbers, and print it
  </code></pre>
  
  <p>This is what I have done so far;</p>
  
  <pre><code>r = range(1, n ** n, 2)         
  result = 0                  
  for k in r:                 
      result = result + k     
  </code></pre>
  
  <p>I know the range is wrong because when I ran it, I used 5 as n and I expected the answer to be 165 because the squares of the first 5 odd numbers is 165 but instead I got 144.</p>
  
  <p>Please help</p>