text_plain_output_1.png
sum = lambda arg1, arg2: arg1 + arg2

def sum(arg1, arg2):
    total = arg1 + arg2
    return total
total = sum(10, 20)

total = 0
def sum(arg1, arg2):
    total = arg1 + arg2
    print('Inside the function local total : ', total)
    return total
sum(10, 20)
print('Outside the function global total : ', total)