human
Check whether K | Python3 code to check if k - th bit of a given number is set or not.
Driver code"
How can the above be solved 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 & ( 1 << ( k - 1 ) ) :
		print ( " SET " )
	else :
		print ( " NOT ▁ SET " )
n = 5
k = 1
isKthBitSet ( n , k )