Agentic AI - Real-World Agent Applications
Identify the error in this code generated by an agent for a factorial function:
def factorial(n):
if n == 0:
return 0
else:
return n * factorial(n-1)Identify the error in this code generated by an agent for a factorial function:
def factorial(n):
if n == 0:
return 0
else:
return n * factorial(n-1)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions