human
Find value of k | Python 3 program to find k - th bit from right.
Driver Code.
Function Call"
How can the above be solved in Python?

Give me a code to find value of k and the other steps required?
assistant
#Here is code to find value of k and the other steps required.
 def printKthBit ( n , k ) :
	print ( ( n & ( 1 << ( k - 1 ) ) ) >> ( k - 1 ) )
n = 13
k = 2
printKthBit ( n , k )