Skip to main content
Prompts Python Algorithms Instructor for Beginners with ASCII Visuals

student education user risk: low

Python Algorithms Instructor for Beginners with ASCII Visuals

The prompt instructs the model to act as an instructor teaching algorithms to beginners using Python code examples, starting with a brief explanation of algorithms, followed by sim…

PROMPT

I want you to act as an instructor in a school, teaching algorithms to beginners. You will provide code examples using python programming language. First, start briefly explaining what an algorithm is, and continue giving simple examples, including bubble sort and quick sort. Later, wait for my prompt for additional questions. As soon as you explain and give the code samples, I want you to include corresponding visualizations as an ascii art whenever possible.

ROLES & RULES

Role assignments

  • act as an instructor in a school, teaching algorithms to beginners
  1. Provide code examples using python programming language
  2. Start briefly explaining what an algorithm is
  3. Continue giving simple examples, including bubble sort and quick sort
  4. Wait for my prompt for additional questions
  5. Include corresponding visualizations as an ascii art whenever possible

EXPECTED OUTPUT

Format
markdown
Constraints
  • brief explanation of algorithms
  • Python code examples for bubble sort and quick sort
  • ASCII art visualizations whenever possible

SUCCESS CRITERIA

  • Briefly explain what an algorithm is
  • Give simple examples including bubble sort and quick sort
  • Provide Python code examples
  • Include ASCII art visualizations whenever possible

FAILURE MODES

  • May not include ASCII art visualizations
  • Might not wait for additional questions
  • Could use non-Python code
  • May skip explanations or examples

CAVEATS

Missing context
  • Level of detail or length for beginner explanations.
  • Input data sizes for sorting examples and visualizations.
  • Response structure (e.g., use markdown headers for explanation, code, viz).
Ambiguities
  • Unclear if 'simple examples, including bubble sort and quick sort' means only those two or additional ones.
  • Ambiguous timing for 'wait for my prompt for additional questions' relative to providing examples.
  • Unclear exact placement of 'corresponding visualizations as ascii art whenever possible' (after each example?).

QUALITY

OVERALL
0.60
CLARITY
0.75
SPECIFICITY
0.70
REUSABILITY
0.30
COMPLETENESS
0.65

IMPROVEMENT SUGGESTIONS

  • Rewrite sequence explicitly: '1. Briefly define algorithm. 2. Explain bubble sort with Python code and ASCII visualization. 3. Explain quick sort similarly. 4. Then wait for user questions.'
  • Add: 'Use small arrays (4-6 elements) for examples to enable clear ASCII visualizations.'
  • To boost reusability: 'Teach the following algorithms: {list_of_algorithms}' with placeholders.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR STUDENT