# global function
# global function を使うことで、あるfunction外でもglobal以下のものが使える

def lohit_lohit():
    global name
    name="lohit badiger"
    print("the name is ",name)

lohit_lohit()
print("global name is", name)
print(name)


# Global Variables
x="global"

def foo():
    print("x inside :",x)

foo()
print("x inside :",x)


9e140e8ac5bab9e43a2f38532aa4f688f5409bc1
def lohit_lohit():
    global name
    name = 'lohit badiger'
    print('the name is ', name)


<mask token>

def lohit_lohit():
    global name
    name = 'lohit badiger'
    print('the name is ', name)


<mask token>


def foo():
    print('x inside :', x)


<mask token>

def lohit_lohit():
    global name
    name = 'lohit badiger'
    print('the name is ', name)


lohit_lohit()
print('global name is', name)
print(name)
<mask token>


def foo():
    print('x inside :', x)


foo()
print('x inside :', x)

def lohit_lohit():
    global name
    name = 'lohit badiger'
    print('the name is ', name)


lohit_lohit()
print('global name is', name)
print(name)
x = 'global'


def foo():
    print('x inside :', x)


foo()
print('x inside :', x)

# global function
# global function を使うことで、あるfunction外でもglobal以下のものが使える

def lohit_lohit():
    global name
    name="lohit badiger"
    print("the name is ",name)

lohit_lohit()
print("global name is", name)
print(name)


# Global Variables
x="global"

def foo():
    print("x inside :",x)

foo()
print("x inside :",x)

