Task 019 Prompt
Example 1:
Input: 'hello' → Output: 2
Example 2:
Input: 'sky' → Output: 0
Example 3:
Input: 'aei' → Output: 3
Now write a function count_vowels(s) that returns how many lowercase English vowels ('a','e','i','o','u') appear in s.when to use it
Community prompt sourced from the open-source GitHub repo KCyrusNF/Prompting-Strategies-CodeGen-Study (MIT). A "Task 019 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
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar