Modify a Global Variable Inside a Function

Adjust the increment function so that it modifies the global variable counter. Every time you call increment, it should increment counter by 1.
counter = 0 def increment():
# adjust code here... counter += 1
increment() print(counter) # expected: 1 increment() print(counter) # expected: 2
Python
Setting up Python environment...
Output