home/productivity/task-016-prompt

Task 016 Prompt

GPTClaudeDeepSeek··1,100 copies·updated 2026-07-14
task-016-prompt.prompt
Example 1:
Input: [2, 4, 6] → Output: 4.0
Example 2:
Input: [10, 10, 10] → Output: 10.0
Now write a function average_of_list(nums) that sums all numbers in nums and divides by the length of the list.

when to use it

Community prompt sourced from the open-source GitHub repo KCyrusNF/Prompting-Strategies-CodeGen-Study (MIT). A "Task 016 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