This is what i did
def Pochhammer_func(num,pow): x = 1 for k in range(pow): x*= num+k k+=1 return x print(Pochhammer_func(2,10))