human
Count rotations of N which are Odd and Even | Function to count of all rotations which are odd and even.
Driver code"
How can the above be solved in Python?

=====
Write me a code to count rotations of N which are Odd and Even and the other steps required?
assistant
#Here is code to count rotations of N which are Odd and Even and the other steps required.
 def countOddRotations ( n ) :
	odd_count = 0 ; even_count = 0
	while n != 0 :
		digit = n % 10
		if digit % 2 == 0 :
			odd_count += 1
		else :
			even_count += 1
		n = n // 10
	print ( " Odd ▁ = " , odd_count )
	print ( " Even ▁ = " , even_count )
n = 1234
countOddRotations ( n )