Saved Bookmarks
| 1. |
Predict the output of the following code snippet:ptr=40def result():print ptrptr=90def func(var):if var<=60:ptr=30print ptrresult()func(60)func(70) |
|
Answer» UnboundLocalError: local variable ‘ptr’ referenced before assignment. |
|