Learning & Education

Instructor in a School

Learn algorithms with code examples

The 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.

How to use it

Copy the prompt, paste it into ChatGPT, Claude, Gemini or Perplexity, and replace anything in brackets with your own details. The more context you add about your situation, the better the answer.

  • algorithms
  • programming
  • education
See all 108 prompts in Learning & Education

Want prompts like these built into how your team works?

DAPT builds custom AI tools and trains your team to run them. Tell us what you're doing by hand.

Book a call