Pattern: Variable accessed before assignment
Issue: -
If variable is used before assignment, a runtime error will be raised. Assign it first to resolve this issue.
Example of incorrect code:
print(name)
name = "test"
Example of correct code:
name = "test"
print(name)