Explain how the global keyword works in Python and when you would use it.
Implement update_counter(start, amount), which initializes the module-level variable counter to start, adds amount to it, and returns the updated value. The function must use global because it assigns to the module-level variable.
Function signature: def update_counter(start, amount):
Input: Two integers. Output: The resulting integer.
start and amount are integersglobal keyword for counterdef update_counter(start, amount):