title: Iteration over a list
body: <p>i'm struggling with the following question:</p>
  
  <p><em>Write a function has23(nums) that takes an int list of length 2 and returns <code>True</code> if it contains a <code>2</code> or a <code>3</code>.</em></p>
  
  <p>Mycode:</p>
  
  <pre><code>def has23(nums):
      for i in nums:
          if i == 2 or i == 3:
              return True
          return False
  </code></pre>
  
  <p>Testing:</p>
  
  <p><code>has23([2, 5])</code>
  Expected: <code>True</code>
  Got: <code>True</code></p>
  
  <p><code>has23([42, 53])</code>
  Expected: <code>False</code>
  Got: <code>False</code></p>
  
  <p><code>has23([4, 3])</code>
  Expected: <code>True</code>
  Got: <code>**False**</code></p>
  
  <p><code>has23([1, 2])</code>
  Expected: <code>True</code>
  Got: <code>**False**</code></p>
  
  <p>I dont know why it's returning <code>False</code> to me, when it should be <code>True</code> in the last two tests.</p>