def get_total(a, b):
# Enclosed variable declared inside a function
total = a + b
def double_it():
# Local variable
nonlocal total # Use the 'nonlocal' keyword to modify the enclosed variable
double = total * 2
print(double)
double_it()
# The double variable will now be accessible
print(total) # Print the total value outside the double_it() function
return total
get_total(2, 2)