human
Check whether K | PHP program to check if k - th bit of a given number is set or not using right shift operator ..
Driver code"
Solution in Python:

=====
Can you provide a code to check whether K and the other steps required?
assistant
#Here is code to check whether K and the other steps required.
 def isKthBitSet ( n , k ) :
	if ( ( n >> ( k - 1 ) ) and 1 ) :
		print ( " SET " )
	else :
		print ( " NOT ▁ SET " )
n , k = 5 , 1
isKthBitSet ( n , k )