human
Check a number is odd or even without modulus operator | Returns true if n is even , else odd.
Driver code"
Solution in Python:
assistant
#Here is code to check a number is odd or even without modulus operator and the other steps required.
 def isEven ( n ) :
	isEven = True ;
	for i in range ( 1 , n + 1 ) :
		if isEven == True :
			isEven = False ;
		else :
			isEven = True ;
	return isEven ;
n = 101 ;
if isEven ( n ) == True :
	print ( " Even " ) ;
else :
	print ( " Odd " ) ;