The document contains Python code that defines functions to calculate factorials, permutations, and combinations. It defines fact(), findperm(), and findcomb() functions, then prompts the user to input values for n and r and prints out the permutation and combination results by calling findperm() and findcomb().
The document contains Python code that defines functions to calculate factorials, permutations, and combinations. It defines fact(), findperm(), and findcomb() functions, then prompts the user to input values for n and r and prints out the permutation and combination results by calling findperm() and findcomb().
The document contains Python code that defines functions to calculate factorials, permutations, and combinations. It defines fact(), findperm(), and findcomb() functions, then prompts the user to input values for n and r and prints out the permutation and combination results by calling findperm() and findcomb().