79682839

Date: 2025-06-28 08:30:39
Score: 1
Natty:
Report link

GLOBAL.py

VAR = 0

def getVar():
    global VAR
    return VAR

def setVar(v):
    global VAR
    VAR = v

mod_1.py

from GLOBAL import setVar

setVar(1)

mod_2.py

from GLOBAL import getVar

print(getVar())
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user30914935