home/productivity/task-010-prompt

Task 010 Prompt

GPTClaudeDeepSeek··1,082 copies·updated 2026-07-14
task-010-prompt.prompt
Write a function absolute_difference(a, b) that returns the absolute difference between two integers a and b (that is, |a - b|).

when to use it

Community prompt sourced from the open-source GitHub repo KCyrusNF/Prompting-Strategies-CodeGen-Study (MIT). A "Task 010 Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

KCyrusNF/Prompting-Strategies-CodeGen-Study · MIT