import math result = math.perm(6, 2) print(result) result = math.comb(6, 2) print(result)