r/PythonLearning
•
u/shubham_555
•
Sep 13 '26
•
1
Showcase The Bank Project
Last Post - https://www.reddit.com/r/PythonLearning/s/kGqwMS9HUH
Github Repo - https://github.com/Dev-4-All/bank.git
242
Upvotes
View all comments
Show parent comment
1
u/shubham_555 Sep 13 '26
I guess I am getting it.... so you mean global itself isn't bad but using it in generic functions to modify states which lives elsewhere is bad because that can cause potential bugs. In classes we use specific getters and setters to handle attributes and hence it is clear to us which functions would modify them. So here if I wanna modify these global variables then I should create separate functions for it correct?