Question: enter an arbitrary sequence of integers at the keyboard, and then prints the number of positive even integers user enters.

```
def find_even_count():
          count = 0
          x = raw_input("Enter a value, or q to quit: ")
          while (x != "q") and (x > 0):
              for num in x:
                  if (int(x) % 2 == 0):
                      count += 1
                      entry = raw_input("Enter a value, or q to quit: ")
          return count

```

I have gotten this so far but it is not working any ideas?

Answer: 
If you are counting them as they are entered there is no need to iterate.

```
def find_even_count():
    count = 0
    x = raw_input("Enter a value, or q to quit: ")
    while (x != "q") and (x > 0):
        if (int(x) % 2 == 0):
            count += 1
        x = raw_input("Enter a value, or q to quit: ")
    return count

```

on the other hand if you had a sequence of numbers getting the number of evens is O(n) and can be written one pythonic line.

```
numberOfEvens = sum([1 if k%2==0 else 0 for k in sequence])

```
In your code, the line `entry = raw_input("Enter a value, or q to quit: ")` might be causing issues. if you noticed, in kpie's code, the line is inline with the `if` statement. in your code it will only be executed if `x` is even. if `x` is odd, your code will loop forever. additionally, `entry` is never used, so, again, `x` won't change.