Question DSA-STR-0013
MediumWhat is the output of this code?
from collections import Counter
s = "aabbcdc"
c = Counter(s)
print(next((ch for ch in s if c[ch] == 1), None))
- A.
b
- B.
None
- C.
d
- D.
a
Sign up free to see the answer and a step-by-step explanation.