1.

What is the output of the following snippet of code? a = {} a[1] = 1 a['1'] = 2 a[1]=a[1]+1 count = 0 for i in a: count += a[i] print(count)

A. 1
B. 2
C. 4
D. Error, the keys can’t be a mixture of letters and numbers
Answer» D. Error, the keys can’t be a mixture of letters and numbers


Discussion

No Comment Found