import math numbers = 40 choices = 7 facn = math.factorial(numbers) facc = math.factorial(choices) a = facn / math.factorial(numbers - choices) print(a / (facc)) print(math.factorial(7))