Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

... Not using globals? Pass the value around, use recursion, and keep state as local as possible.




I'd like you to show:

How to write Python code with no globals

And a source other than you saying you should do it this way




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: