PracticeTestGeeks home

(PCEP) Certified Entry-Level Python Programmer FREE PCEP Variable Scope and the `global` keyword Questions and Answers

What is the output of the following code?
```python

var = 100

def my_func():

var = 50

print(var)

my_func()

print(var)

```

Select your answer