Variabel global Python di seluruh file
# config.py
x = 0
# mod.py
import config
config.x = 1
# main.py
import config
import mod
print(config.x) # will print '1'
Clumsy Cassowary