MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following snippet of code? = {} a[1] = 1 a['1'] = 2 a[1.0]=4 count = 0 for i in a: count += a[i] print(count) |
| A. | An exception is thrown |
| B. | 3 |
| C. | 6 |
| D. | 2 |
| Answer» D. 2 | |