u/Easy_Significance208

I've been learning Python and kept getting stuck on the same frustrating things. These 3 prompts changed how I use ChatGPT for learning. Sharing in case they help others. ────────────────────────────────────────── PROMPT 1 — When you get a scary error message: "I got this error message in Python and I have no idea what it means. Please: 1) Translate this error into plain English (no jargon), 2) Explain exactly what caused it, 3) Show me where in my code the problem is, 4) Give me the fixed version, 5) Give me one tip to avoid this error in the future. Here is the error: [paste error] Here is my code: [paste code] Explain it like I am a beginner who has never seen this before." ────────────────────────────────────────── PROMPT 2 — When you don't know where to start: "I want to do the following in Python but I don't know how to code it yet. Please write the Python code for me and add a comment above every single line explaining what it does in plain English. What I want to do: [describe in your own words] Use only basic Python — no libraries, no imports." ────────────────────────────────────────── PROMPT 3 — When you want to actually learn, not just copy: "I just fixed a Python bug. Please: 1) Confirm if my understanding of the cause is correct, 2) Explain the deeper Python concept behind this error, 3) Give me one small exercise (5 lines max) to practice avoiding this specific error, 4) What other similar errors might I make next? The bug: [describe] What caused it: [your explanation] How I fixed it: [what you changed]" ────────────────────────────────────────── Hope these help. Happy to answer questions in the comments.

reddit.com
u/Easy_Significance208 — 1 month ago