Python Function from Natural-Language Specification

Anthropic prompt library

Submit a prompt

Overview

Implement a Python function from a natural-language specification with validation, edge-case handling, and comments.

Use cases

Prompt
Copied 0
Create a Python function based on the natural language request. The request describes desired functionality, input parameters, and expected return value. Implement according to the specifications: handle edge cases, perform validations, follow Python best practices, and include comments explaining the logic.

REQUEST:
<<<paste NL function spec>>>

Can AI?

Alternatives