MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following code? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q)) |
| A. | True |
| B. | False |
| C. | None |
| D. | Error |
| Answer» B. False | |