human
Find the player who wins the game by removing the last of given N cards | Function to check which player can win the game.
Driver Code"
Solution in Python:

Write me a code to find the player who wins the game by removing the last of given N cards and the other steps required?
assistant
#Here is code to find the player who wins the game by removing the last of given N cards and the other steps required.
 def checkWinner ( N , K ) :
	if ( N % ( K + 1 ) ) :
		print ( " A " )
	else :
		print ( " B " )
N = 50
K = 10
checkWinner ( N , K )