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>dont have enough rep to comment, but I think the answer is probalby that your else statement is not properly indented...</p>

<p>Also I think the logic on your even and odd count is off, I think it should be something more like:</p>

<p><code>evencount = evencount+1</code></p>

<p>Try this:</p>

<pre><code>even_sum, odd_sum = 0,0
evencount, oddcount = 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 = evencount +1# len(numbers)
                even_sum += num

    else:
                oddcount = oddcount+1#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>

python