Below, I would like the s var be global to the f function, but local to the principal function.
It seems global means "The Most Global in the Module".
How can I make one less global scope ?
s="what the hell"
print(s)
def principal():
s ="hey"
def f():
global s
if len(s) < 8:
s += " !"
f()
f()
return s
print(principal())
what the hell
hey