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>Problem is with following statements :</p>

<ul>
<li>evencount = len(numbers)</li>
<li>oddcount = len(numbers)</li>
<li>else indentation</li>
</ul>

<p>Solution is ::</p>

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

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

for num in numbers:

    if num%2 == 0:
        even_sum = even_sum + num
        even_count = even_count + 1
    else:
        odd_sum = odd_sum + num
        odd_count = odd_count + 1

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

print 'The summation of even %d and odd numbers are %d ' % (even_sum,odd_sum)
print "The difference between biggest and smallest number is " + str(difference)
print "The count of even numbers and odd numbers are " + str(even_count) + " " + str(odd_count)
</code></pre>

python