1"""
2This happens when python thinks that your variable is local
3(the scope is only within a specific function) and/or that
4you have not assigned a value to the variable before in this
5specific function (scope).
6
7try:
8 - assigning the variable a value within the function
9 - Passing the variable to the function using it when calling the function
10 - Declaring the variable as global (bad practice)
11
12Read more about this error in the source
13"""