<jupyter_start><jupyter_text>Global and local Scopes<jupyter_code>a = 10
def my_func(n):
    c = n ** 2
    return c
def my_func(n):
    print('global a:', a)
    c = a ** n
    return c
my_func(2)
def my_func(n):
    a = 20
    c = a ** n
    return c
print(a)
my_func(2)
print(a)
def my_func(n):
    global a
    a = 20
    c = a ** n
    return c
my_func(2)
print(a)
def my_func():
    global var
    var = 'Hello World!'
    return
print(var)
my_func()
print(var)
a = 10
def my_func():
    global a
    a = 'hello'
    print('global a:', a)
my_func()
print(a)
a = 10
def my_func():
    print('global a:', a)
    a = 'hello world'
    print(a)
my_func()
f = lambda n: print(a**n)
f(2)
print(True)
def print(x):
    return 'hello {0}'.format(x)
print('world')
print('world', '!')
del print
print('world')
for (int i = 0; i < 10: i++) {
    int x = 2* i;
}
system(.out.println(x))
for i in range(10):
    x = 2 * i
print(x)<jupyter_output>18
{'fraction_non_alphanumeric': 0.17197452229299362, 'fraction_numerical': 0.02653927813163482, 'mean_word_length': 2.8647540983606556, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '384369', 'license': 'Unlicense', 'n_tokens_mistral': 429, 'n_tokens_neox': 408, 'n_words': 120, 'path': 'my_classes/ScopesClosuresAndDecorators/GlobalAndLocalScopes.ipynb', 'repo_name': 'minefarmer/deep-Dive-1', 'size': '942'}