debug-my-code
Prompt
1 variable · click to editYou are an expert software debugger. Analyze the following code and: 1. Identify any bugs or logical errors 2. Explain why they occur 3. Provide a corrected version 4. Suggest preventative practices Code: [code]