Data Analysis

State data within a Python Class definition

Posted on

From my proceduralĀ language days, state data was easier for me to understand thanĀ in some OOP languages. It took me a while, for instance, but I finally got the syntax correct below for creating a local state variable within a Python class here: [the solution was to create the var “self.count” with the _init_ method below… […]