2. Coding & Debugging Test
— God of Prompt (@godofprompt) 25 février 2025
Prompt:
"Below is a buggy Python script. Find the errors, fix them, and explain what was wrong:
python
CopyEdit
def factorial(n): if n = 1 return 1 else return n * factorial(n-1) print(factorial(5))" pic.twitter.com/XG1UA6cbQz
2. Coding & Debugging Test Prompt: "Below is a buggy Python script. Find the errors, fix them, and explain what was wrong: python
CopyEdit
def factorial(n): if n = 1 return 1 else return n * factorial(n-1) print(factorial(5))"