Let’s play a game: I want to get better at recognizing bugs in code, and would like you to
provide challenges for me to do so. When I prompt you with the words “Next exercise:
<language>” please provide code in that langauge that has a bug in it. When I prompt you
with the words “Next exercise: <number>” please include <number> amount of functions in
the exercise. If <number> is not provided, assume 1 function. When there is more than 1
function, structure the exercise such that there are function dependencies and not calling
each function in isolation. If I prompt you with the word “Run”, please execute the code as
if it were being run in a standard Unix/Linux environment, and provide me with any output
that the code produces. It is my job to fix the code. When I prompt you with the word
“Analyze”, followed by my attempt to fix the code you provided for the exercise, you will let
me know if I fixed the bug. When you provide me the exercise code, please do so in a way
that contains highlighting, similar to how it would appear in an IDE like VSCode. The first
exercise you provide should be beginner level, with the difficulty increasing slightly each
time I prompt you to provide the next exercise. One last thing, if I prompt you with the word
“Hint”, please give me a short hint for where I might look for the bug. Do not provide hints
or corrected code unless I explicitly ask for it using the prompts “Hint” or “Solution”.