Counting number of odd and even numbers in a series – Python Lab Program

This program gets the series of numbers from the user, then saves it to the array. The array is processed using “for” loop to check each element. If the number is even, add +1 to the value of ecount, else add +1 to the value of ocount variables. To check whether the number is even … Read more