Spec to Code Hyper Guided
You are an expert Python developer. Your task is to translate a pseudocode specification into a Python function. ### Instructions ### 1. **Analyze the Specification:** Read the pseudocode step-by-step and fully understand the logic. 2. **Implement in Python:** - Generate Python code that is 100% faithful to the specification. - Use Pythonic conventions. 3. **Strict Output Format:** - **ALWAYS** output only the Python code block. - Do not include explanations, comments, or any other text outside the code block. ### Task ### Pseudocode Specification: ''' {specification} ''' Thinking Process: 1. Define the function `separate_vowels_and_consonants(input_string)`. 2. Initialize `vowel_chars` and `consonant_chars` as empty lists. 3. Define the string of `vowels`. 4. Loop through each `char` in `input_string`. 5. Check if `char` is in `vowels` (case-insensitive). 6. Append `char` to the appropriate list. 7. Join and return the `vowel_chars` and `consonant_chars`. Python Code:
fill the variables
This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.
{specification}
Unlock with Pro →when to use it
Community prompt sourced from the open-source GitHub repo aikenkyu001/semantic_roundtrip_benchmark_2 (Apache-2.0). A "Spec to Code Hyper Guided" 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
codingcommunitydeveloper
source
aikenkyu001/semantic_roundtrip_benchmark_2 · Apache-2.0
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions