I am beginner to Python. I defined a variable when using threading but when I started the thread and asked the value of the variable it gave me an error. Here is the minimum