What is wrong with this code? My function is supposed to print the factorial of its input.
def factorial(x):
  return factorial(x-1) * x
system
is code ke saath kya samasya he?meraa kaary iske input ke factoriyal ko print karne vaala he.
dief factoriyal (eks):
  ritern factoriyal (eks -1) * eks
user
yah punaravarti fnction ek aadhaar maamle ko yaad kar rahaa he.is vajah se, yah kabhi bhi rukne ke bina khud ko bulaaegaa.ise thik karne ke liye, neeche die gaye code kii tarah ek aadhaar cese joden:
dief factoriyal (eks):
  yadi x == 0:
    lauten 1
  anya:
    ritern factoriyal (eks -1) * eks
assistant
<|system|>
</s>
<|user|>
is code ke saath kya samasya he?meraa kaary iske input ke factoriyal ko print karne vaala he.
dief factoriyal (eks):
  ritern factoriyal (eks -1) * eks</s>
<|assistant|>
yah punaravarti fnction ek aadhaar maamle ko yaad kar rahaa he.is vajah se, yah kabhi bhi rukne ke bina khud ko bulaaegaa.ise thik karne ke liye, neeche die gaye code kii tarah ek aadhaar cese joden:
dief factoriyal (eks):
  yadi x == 0:
    lauten 1
  anya:
    ritern factoriyal (eks -1) * eks</s>
