#! /usr/bin/env python3

x = 5
y = 15

if x < y :
    print (f"{x} smaller than {y}")
    z = 60
else:
    print (f"{x} larger than {y}")


def main():
    w = 79
    print ("main function here haha ...")

#in Python, Block is defined by indention
#but indention doesn't define scope.  Only def function can define its scope
print (f"we can get z : {z}") #block, just indention
print (f"we can not get w : {w}") #inside defined function

47a163812a3763a7b2617ca3ce43e17cccd6c4df
<mask token>

<mask token>


def main():
    w = 79
    print('main function here haha ...')


<mask token>

<mask token>
if x < y:
    print(f'{x} smaller than {y}')
    z = 60
else:
    print(f'{x} larger than {y}')


def main():
    w = 79
    print('main function here haha ...')


print(f'we can get z : {z}')
print(f'we can not get w : {w}')

x = 5
y = 15
if x < y:
    print(f'{x} smaller than {y}')
    z = 60
else:
    print(f'{x} larger than {y}')


def main():
    w = 79
    print('main function here haha ...')


print(f'we can get z : {z}')
print(f'we can not get w : {w}')

#! /usr/bin/env python3

x = 5
y = 15

if x < y :
    print (f"{x} smaller than {y}")
    z = 60
else:
    print (f"{x} larger than {y}")


def main():
    w = 79
    print ("main function here haha ...")

#in Python, Block is defined by indention
#but indention doesn't define scope.  Only def function can define its scope
print (f"we can get z : {z}") #block, just indention
print (f"we can not get w : {w}") #inside defined function
