The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.
On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.
Warm regards, and best of luck with your Pythoneering!
I really like the idea of tracing broken loops rather than just working examples. Understanding exactly where something goes wrong is much more valuable than memorizing the correct result.
Another useful exercise might be asking students to predict what happens if one line is moved outside the loop. It teaches them to understand the execution process rather than just recognize familiar code patterns.
Learning to think like the interpreter is probably one of the most valuable skills a beginner can develop.
Writing on paper is a lost skill. People do no understand, let alone appreciate that writing on paper has benefits three-food, three ways...
Idea comes to mind and want to write it
Idea is thought of before put down
Brain / mind actively thinks at signals it needs to send to hand
By the time the first writing ends, or reaches half way through, brain subconsciously has already worked other paths, or has brought up consolidation/ contingency ideas
Hand "signals, back to brain: " finished what next"
Eyes read text, Brain compiles information and subconsciously provides more information, or goes through another thought process...
Raw, translated actions brain-to-hand
Glad to see people taking to writing and experimenting on paper, writing things out, rather than juggling with mental aproximations
The before/after column is huge because it breaks the common beginner assumption that = is algebraic equality rather than state rebinding. Two follow-up exercises that build nicely on top of that table in Python: 1) Tracing in-place mutation vs. rebinding (e.g., list.append() inside a loop vs. lst = lst + [...]) so drawing memory boxes makes sense before they hit aliasing bugs. 2) Tracing early break/continue paths and checking what the loop variable still holds after the loop exits.
•
u/Python-ModTeam 9h ago
Hi there, from the /r/Python mods.
We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.
The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.
On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.
Warm regards, and best of luck with your Pythoneering!
6
u/TPECKA180 23h ago
I really like the idea of tracing broken loops rather than just working examples. Understanding exactly where something goes wrong is much more valuable than memorizing the correct result.
Another useful exercise might be asking students to predict what happens if one line is moved outside the loop. It teaches them to understand the execution process rather than just recognize familiar code patterns.
Learning to think like the interpreter is probably one of the most valuable skills a beginner can develop.
3
u/RallyPointAlpha 16h ago
This is pretty cool! Do you have an example of a broken loop that you've used to teach this?
1
u/aciokkan 13h ago
Writing on paper is a lost skill. People do no understand, let alone appreciate that writing on paper has benefits three-food, three ways...
Raw, translated actions brain-to-hand
Glad to see people taking to writing and experimenting on paper, writing things out, rather than juggling with mental aproximations
1
u/DevDanish 19h ago
The before/after column is huge because it breaks the common beginner assumption that = is algebraic equality rather than state rebinding. Two follow-up exercises that build nicely on top of that table in Python: 1) Tracing in-place mutation vs. rebinding (e.g., list.append() inside a loop vs. lst = lst + [...]) so drawing memory boxes makes sense before they hit aliasing bugs. 2) Tracing early break/continue paths and checking what the loop variable still holds after the loop exits.
1
u/DeaD_EyE_1 18h ago
https://en.wikipedia.org/wiki/Loop_unrolling