MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following snippet of code? total={} def insert(items): if items in total: total[items] += 1 else: total[items] = 1 insert('Apple') insert('Ball') insert('Apple') print (len(total)) |
| A. | 3 |
| B. | 1 |
| C. | 2 |
| D. | 0 |
| Answer» D. 0 | |