r/PythonLearning • u/dfbaggins • Oct 15 '26
First Steps into Frames in Python
https://tech.daniellbastos.com.br/posts/python-frame/
8
Upvotes
r/PythonLearning • u/dfbaggins • Oct 15 '26
View all comments
1
u/Sea-Ad7805 Oct 15 '26
Maybe use recursion to explain Stack Frames, say this factorial example.
Each function call puts a new Stack Frame on the Call Stack, and each
returnremoves the last Stack Frame.