human
Count N | Function to find the number of arrays following the given condition.
Initialize answer.
Calculate nPm.
Print ans.
Driver Code.
Given N and M.
Function Call"
How can the above be solved in Python?
 ... Can you provide a code to count N and the other steps required?
assistant
#Here is code to count N and the other steps required.
 def noOfArraysPossible ( N , M ) :
	ans = 1
	for i in range ( N ) :
		ans = ans * ( M - i )
	print ( ans )
if __name__ == " _ _ main _ _ " :
	N = 2
	M = 3
	noOfArraysPossible ( N , M )