human
Count numbers having N 0 ' s ▁ and ▁ and ▁ M ▁ 1' s with no leading zeros | Function to return the factorial of a number.
Function to return the count of distinct ( N + M ) digit numbers having N 0 ' s ▁ and ▁ and ▁ M ▁ 1' s with no leading zeros.
Driver code"
How can the above be solved in Python?

Write me a code to count numbers having N 0 ' s ▁ and ▁ and ▁ M ▁ 1' s with no leading zeros and the other steps required?
assistant
#Here is code to count numbers having N 0 ' s ▁ and ▁ and ▁ M ▁ 1' s with no leading zeros and the other steps required.
 def factorial ( f ) :
	fact = 1
	for i in range ( 2 , f + 1 ) :
		fact *= i
	return fact
def findPermuatation ( N , M ) :
	permutation = ( factorial ( N + M - 1 ) // ( factorial ( N ) * factorial ( M - 1 ) ) )
	return permutation
N = 3 ; M = 3
print ( findPermuatation ( N , M ) )