Function to find the number of words of X vowels and Y consonants can be formed from M vowels and N consonants
def NumberOfWays ( X , Y , M , N ) : NEW_LINE INDENT return fact ( X + Y ) * nCr ( M , X ) * nCr ( N , Y ) NEW_LINE DEDENT