MCQOPTIONS
Saved Bookmarks
| 1. |
The output of code shown below is: x = 5 def f1(): global x x = 4 def f2(a,b): global x return a+b+x f1() total = f2(1,2) print(total) |
| A. | Error |
| B. | 7 |
| C. | 8 |
| D. | 15 |
| Answer» C. 8 | |