Accessing global variable value in python : <pre><code>def definition():
    global storage_account_connection_string
    storage_account_connection_string="test"

def load_config():
    config = ConfigParser.ConfigParser()
    config.readfp(open(r'config.txt'))
    temp = config.get('API_Metrics','SCC')
    temp1 = temp.split("#")
    for conf in temp1:
        confTemp=conf.split(":")
        print "#########################################"
        print confTemp[0]
        print confTemp[1]
        print confTemp[2]
        storage_account_connection_string=confTemp[2]
        print storage_account_connection_string
        get_details()
def get_details():
    print storage_account_connection_string
    print "Blob",blob_name_filter
if __name__ == '__main_`enter code here`_':
    definition()
    load_config()`enter code here`
</code></pre>

<p>My question is why connection string always prints "test" in get_details(), though it is assigned with some value in load_config(), AM I missing something? </p>
