x=2

def haha():
    #global x
    x=3
    print("This is from inside the function: ", x)
    
haha()
print("This is from outside the function, and should be different, i global is not used: ", x)

e7e6250759fb48184afacd9fd41cd51e8842aad1
<mask token>

<mask token>


def haha():
    x = 3
    print('This is from inside the function: ', x)


<mask token>

<mask token>


def haha():
    x = 3
    print('This is from inside the function: ', x)


haha()
print(
    'This is from outside the function, and should be different, i global is not used: '
    , x)

x = 2


def haha():
    x = 3
    print('This is from inside the function: ', x)


haha()
print(
    'This is from outside the function, and should be different, i global is not used: '
    , x)

x=2

def haha():
    #global x
    x=3
    print("This is from inside the function: ", x)
    
haha()
print("This is from outside the function, and should be different, i global is not used: ", x)
