Pattern: Global variable is not assigned
Issue: -
Used when a variable is defined through the global
statement but no assignment to this variable is done.
Example of incorrect code:
def func():
global name
Example of correct code:
def func():
global name
mouse = "modified"