I have a case :
x = "me"
class Test():
global x
def hello(self):
if x == "me":
x = "Hei..!"
return "success"
I try this case with shell.
How I can print x which the output/value of x is Hei..!?
I tried with
Test().hello # for running def hello
print x # for print the value of x
After I print x, the output is still me.