I just typed that pseudo code up really quickly, that’s why there was the def error. My issue was that I didn’t declare data as a global within the function.
solved Class Access to Global Variables in Python
I just typed that pseudo code up really quickly, that’s why there was the def error. My issue was that I didn’t declare data as a global within the function.
solved Class Access to Global Variables in Python