title: Sum of Odd Integers in Python
body: <p>I need to figure out how to write a for loop in Python that returns NOT print the sum of odd integers given an input. I can't use the sum function or make a list. So far all I have is this:</p>
  
  <pre><code>def sumofoddints (n):
  
      n &gt;= 1
  
      total = 0
  
      for num in range (1, n):
  
          if num % 2 == 1:
  
              total += n
  
      return total
  </code></pre>
  
  <p>This doesn't give me the correct sums so I'm not sure how to fix it. </p>