licznik=0x=int(input())while x!=0: if x%2==1: licznik=licznik+1 x=int(input())print(licznik)
11 22 45 67 44 0
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!