More and more errors in generated Python code

Is it just me, or is ChatGPT getting worse and worse at generating working Python code? In the beginning I used it a lot, but these days the generated code contains error after error.

It tried re-generating this simple code 6 times, and every time it failed with the same error. Really frustrating.