Q2Single correct3 Marks10 May 2026
What is the output of the following snippet of code?
```
s = 'machinelearningwithpython'
D = {}
for ch in s:
D[ch] = D.get(ch, 0) + 1
mch = ''
mcv = -1
for k in sorted(D.keys()):
if D[k] > mcv:
mcv = D[k]
mch = k
print(mch)
```
What is the output?