I’m fairly new to python, and I’m having an issue regarding scope (at least I think that is what the issue is. In this code, I’m trying to update it so that the level changes, and so do all of the stats (self.str, self.att, self.def) but when I run the code the level goes up but the relevant stats do not change. I’m feeling like there’s an essential piece of logic I’m missing about how python works in terms of scope. Could somebody explain to me what’s going on here?
Thank you much! I like the conciseness of the property decorator which I didnt know about until now. That helps. But for learnings sake, I did follow the other one as well and that helps! Thanks to @effigies and @franklinvp for the help!