title: IQ test function in Python not working as intended
body: <p>I'm having trouble with this code below.</p>
  
  <p>My task is to create a function, that among the given numbers finds one that is different in evenness, and returns a position of that number. The numbers are given as a string. So far I have managed to convert the string into an integer list, then using <code>for</code> loop to iterate through each number.</p>
  
  <p>The problem I'm encountering is that I've managed to return only the position of an odd number among the even numbers, and I can't continue on with the code for vice versa action, because it only returns the position of the odd number.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>def iq_test(numbers):
      # Splitting the "numbers" string
      num_split = numbers.split()
      # converting the splitted strings into int
      num_map = map(int, num_split)
      # converting the object into list
      list_num = list(num_map)
      for n in list_num:
          if not n%2 == 0:
              return list_num.index(n) + 1
  </code></pre>