Task: Understanding and Using Global Variables in Python Functions
Task: Understanding and Using Global Variables in Python Functions: a task in Terminal-Lego-15k (Harbor dataset). In Python, variables defined inside a function are local by default. To use or modify a global variable inside a function, you need to use the global keyword. Your task is to…
The task
In Python, variables defined inside a function are local by default. To use or modify a global variable inside a function, you need to use the `global` keyword. Your task is to demonstrate proper usage of global variables in Python functions.
Part of PrimeIntellect/Terminal-Lego-15k.