You can use the perm() function of Python module 'math'.
math.perm(n, k=None)
>>> import math>>> math.perm(7,3)210>>> math.perm(3,1)3>>> math.perm(3,4)0>>> math.perm(5,3)60