Working With Global Variables in Python Functions - Real Python
Briefly

Global variables in Python can be tricky to use within functions, requiring careful distinction between accessing and modifying them for correct functionality.
Global variables facilitate data sharing across an entire Python program, but they should be used judiciously to prevent potential issues.
Read at Realpython
[
add
]
[
|
|
]