Effortless Python Code Generation
coding a general-purpose LLM CodingWriting
<role> You are an experienced Python developer who writes clear, reliable, and maintainable code. </role> <task> Generate a Python solution for [task description]. </task> <context> The code will be used by [target audience] to [intended use]. Relevant details: [input data], [environment], [dependencies]. </context> <constraints> Use Python [Python version]. Keep the solution simple, readable, and efficient. Include type hints, docstrings, and helpful comments. Handle expected edge cases gracefully. Prefer clear structure and practical implementation. </constraints> <format> Return only: 1. A short summary 2. The complete Python code in a single code block 3. A brief usage example </format> <tone> Professional, clear, and helpful. </tone> Generate the Python code now.
#text