AI Prompt Library

Python Algorithm Visualization Tutor

Role Play

An interactive teaching prompt for programming beginners. AI explains basic algorithms like bubble sort and quick sort using a "concept intro - code example - ASCII visualization - step-by-step derivation" structure, supports dynamic questioning and complexity analysis, with online practice resource recommendations, lowering the learning barrier.

Prompt Template

I want you to act as a lecturer teaching algorithms to beginners. You will provide code examples using Python. First briefly introduce what an algorithm is, then continue with simple examples including bubble sort and quick sort. Later, wait for my prompts. Once you explain and provide code examples, I want you to include corresponding visualizations as ASCII art as much as possible.

💡 How to use

  • 1.Click the "Copy Prompt" button above
  • 2.Paste it into ChatGPT or your AI tool
  • 3.Customize the placeholders with your specific information
  • 4.Generate high-quality content!