Sum even and odd number output not correct
<blockquote>
  <p><strong>INPUTS 1</strong></p>
  
  <p>"1 2 3 4 5 6"   &lt;&lt;&lt; YES WITH SPACE</p>
  
  <blockquote>
    <p><strong>Results returned</strong></p>
    
    <ul>
    <li>The summation of even and odd numbers are 12 and 6 <strong>[x]</strong></li>
    <li>The difference between biggest and smallest number is 5    <strong>[â]</strong></li>
    <li>The count of even numbers and odd numbers are 6 6 <strong>[x]</strong></li>
    </ul>
  </blockquote>
  
  <p><strong>INPUT 2</strong></p>
  
  <p>1 2 3 4 </p>
  
  <blockquote>
    <p><strong>Results returned</strong></p>
    
    <ul>
    <li>The summation of even and odd numbers are 6 and 4 <strong>[â]</strong></li>
    <li>The difference between biggest and smallest number is 3 <strong>[â]</strong></li>
    <li>The count of even numbers and odd numbers are 4 4 <strong>[X]</strong></li>
    </ul>
  </blockquote>
</blockquote>

<p>what is wrong with my code? can someone enlighten me???</p>

<pre><code>even_sum, odd_sum = 0,0


    s = raw_input("Please Input a series of numbers")
    numbers = map(int, s.split())

    for num in numbers:
        if num%2 ==0:
                    evencount = len(numbers)
                    even_sum += num

    else:
                    oddcount = len(numbers)
                    odd_sum += num



    max = max(numbers)
    min = min(numbers)
    difference = max - min

    print numbers
    print "The summation of even and odd numbers are " + str(even_sum) + " and " + str(odd_sum)
    print "The difference between biggest and smallest number is " + str(difference)
    print "The count of even numbers and odd numbers are " + str(evencount) + " " + str(oddcount)
</code></pre>

<p>You've received corrections to your code from other answers (namely <code>evencount += 1</code>), but just for some potential further investigations into the capabilities of the language here's another approach to the solution.</p>

<p>Python has a strong iterator algebra and in the itertools recipes is <code>partition</code> which splits a list into parts based on the condition, in fact the example given is splitting odd from even: <a href="https://docs.python.org/3.5/library/itertools.html#itertools-recipes" rel="nofollow">Itertools Recipes</a></p>

<p>So using this would look like:</p>

<pre><code>import itertools as it
s = "1 2 3 4 5 6"
numbers = list(map(int, s.split()))  # Need `list` in Py3 okay to skip in Py2

# See itertools recipes
def partition(pred, iterable):
    t1, t2 = it.tee(iterable)
    return it.filterfalse(pred, t1), filter(pred, t2)

is_odd = lambda x: x%2
even, odd = map(list, partition(is_odd, numbers))

print("The summation of even and odd numbers are {} and {}".format(sum(even), sum(odd)))
print("The difference between biggest and smallest number is {}".format(max(numbers)-min(numbers)))
print("The count of even numbers and odd numbers are {} {}".format(len(even), len(odd)))
</code></pre>

<p>Result:</p>

<pre><code>The summation of even and odd numbers are 12 and 9
The difference between biggest and smallest number is 5
The count of even numbers and odd numbers are 3 3
</code></pre>

python