knk yazsaydın keşke de bakaydık
def faktoriyel(n):
if n == 0:
return 1
else:
return n * faktoriyel(n-1)
x = int(input("Lütfen x değerini girin: "))
n = int(input("Lütfen n değerini girin: "))
result = faktoriyel(x) ** n
print(result)
from math import pow, factorial
def getInput():
x = int(input('x değerini giriniz: '))
y = int(input('y değerini giriniz: '))
return x, y
def calculate():
x, y = getInput()
calc = int(pow(factorial(x), y))
print(f'Sonuç: {calc}')
calculate()