@Gribouillis, it's impossible to solve the problem if we talk about python only, I even tried to use the keyword 'global' but it didn't work because the global variable is killed and it doesn't exist anymore when the python script execution is finished, and after I re-run again the python script inside the program, the variable is gone.
But fortunately, I could solve the problem, I didn't use the keyword 'global' but the program can store a variable inside itself and I use it as a global variable. I cannot use 'pickle', it's impossible to use it, but I found a solution to store the variable object directly.
But fortunately, I could solve the problem, I didn't use the keyword 'global' but the program can store a variable inside itself and I use it as a global variable. I cannot use 'pickle', it's impossible to use it, but I found a solution to store the variable object directly.