PLEASE TELL ME WHY THIS ERROR IS COMING ON MY PYCHARM FOR THE FOLLOWING CODE
C:\Users\Tanishq\PycharmProjects\Practice\venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=65288 import sys; print('Python %s on %s' % (sys.version, sys.platform)) sys.path.extend(['C:\\Users\\Tanishq\\PycharmProjects\\Practice', 'C:/Users/Tanishq/PycharmProjects/Practice']) PyDev console: starting. Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32 runfile('C:/Users/Tanishq/PycharmProjects/Practice/tp1.py', wdir='C:/Users/Tanishq/PycharmProjects/Practice') Traceback (most recent call last): File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:/Users/Tanishq/PycharmProjects/Practice/tp1.py", line 13 global playerhealth ^ SyntaxError: name 'playerhealth' is used prior to global declaration