request_count = 0 already exists. Write a function log_request() that increments request_count by 1 using the global keyword and returns the new value. This models a simple in-process request counter.log_request() log_request()
1, 2
Each call increments the shared module-level counter.
Without the global keyword, request_count += 1 inside the function would raise an UnboundLocalError.
Declare `global request_count` as the first line of the function body.