Advanced
Debugging Assistant
Analyze code snippets to identify potential bugs and suggest fixes.
📝 プロンプトの内容
Act as a senior software engineer. Analyze the following Python function for potential bugs, edge cases, and performance issues. Provide the corrected code with comments explaining the changes made and the reasoning behind them. Focus on error handling and input validation.