demo_ref_math_perm.py:
# Import math Library import math # Initialize the number of items to choose from n = 7 # Initialize the number of items to choose k = 5 # Print the number of ways to choose k items from n items print (math.perm(n, k))
C:\Users\My Name>python demo_math_perm.py
2520