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. What it is
This prompt from the f/awesome-chatgpt-prompts collection instructs the AI to act as an instructor in a school, specifically teaching algorithms to beginners. According to the source, the AI will provide code examples using the Python programming language to illustrate concepts. The combination of algorithm education with hands-on Python code makes this prompt practical for learners who want to understand both the theory and implementation. It is particularly suited for students just starting with computer science who need clear, beginner-friendly explanations. The source does not include a sample follow-up request, so users should ask about a specific algorithm or concept after pasting the prompt. The AI will explain it and provide Python code to demonstrate.
Who it's for
- Programming beginners learning algorithms
- Students preparing for computer science coursework
Requirements
Requirements
- Any AI chatbot (ChatGPT, Claude, Gemini)
برومبت بيحوّل الذكاء الاصطناعي لمعلّم مدرسة بيعلّم الخوارزميات للمبتدئين بأمثلة كود بايثون.
Pros & cons
Pros
- Pro:Combines algorithm theory with practical Python code examples
- Pro:Targets beginners specifically, so explanations should be accessible
Cons
- Con:Limited to Python as specified by the prompt -- other languages require modifying the prompt
- Con:Cannot run or test the code; users must verify examples in their own environment
Tips
- Ask about a specific algorithm (sorting, searching, graph traversal) to get a focused lesson.
- Request that the AI trace through the code with sample input so you can follow the execution step by step.
- Ask the AI to compare two algorithms solving the same problem to understand trade-offs.