human
Can you provide a code to check whether a given number is even or odd and the other steps required given the following:
Check whether a given number is even or odd | Returns true if n is even , else odd.
n & 1 is 1 , then odd , else even.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to check whether a given number is even or odd and the other steps required.
 def isEven ( n ) :
	return ( not ( n & 1 ) )
n = 101 ;
print ( " Even " if isEven ( n ) else " Odd " )