Coding

Write a Function in a Specified Programming Language

Generate a function for a specified context and purpose, using the requested parameters, naming conventions, line length, and starter code. Clarify requirements with questions before providing the code.

Single prompt 7 variables English

Prompt template

Use this prompt.

01
Write a function for context_object in language for a 64-bit PC running Windows 10. Name it function_name and make it serve this purpose: purpose. Use these required parameters: required_variables. Use these optional parameters: optional_variables. Name all variables using snake_case. On the line immediately after the function's name, declare all variables used throughout the function, also in snake_case. Wrap any lines longer than 72 characters. Before providing the code, ask questions to confirm and clarify the requirements. Use this starter code as a basis: code_sample.

Prompt library

Use these prompts directly inside ChatGPT.

Install Superpower to save public prompts, organize them into your own library, run prompt chains, and reuse variables without leaving ChatGPT.