PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
Chat - GPT-3.5 (gpt-3.5-turbo)
Token size
83 ($0.00020 / call)
Example input
[style]: Numpy / Google / reStructuredText (default in Python) def swap_by_temp_var(num1,num2): temp = num1 num1 = num2 num2 = temp return num1, num2
Example output
def swap_by_temp_var(num1, num2): """ Swaps the values of two numbers using a temporary variable. Args: num1 (int): The first number to be swapped. num2 (int): The second number to be swapped. Returns: tuple: A tuple containing the swapped values of num1 and num2. Example: >>> swap_by_temp_var(2, 3) (3, 2) """ temp = num1 num1 = num2 num2 = temp return num1, num2
🤖 GPT

Python Docstring Documentation Generator

Add to Cart
PromptBase Select
Or get it with Select10 Select prompts/mo — under $2 each
Learn more
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GPT-3.5-TURBO
Tested icon
Guide icon
Free credits icon
Generate production-level Python documentation for a given function, class or Python file! This prompt is very easy to use. Just provide it once to ChatGPT, next it will ask you for the piece of code to create docstrings for. You can then continue providing ChatGPT pieces of code and it will only output your provided piece of code with the docstring added. That's how simple it is!
...more
Added over 1 month ago
Report
Browse Marketplace