← Quiz: Python Interview Programs: all 13 questions
Quiz: Python Interview Programs · Question 9 of 13
What does this print? (code)
What does this print?
from collections import Counter
print(Counter("listen") == Counter("silent"), Counter("abc") == Counter("abd"))
- A.True True
- B.True False
- C.False False
- D.False True
Answer & explanation
Correct answer: True False
Two words are anagrams when every letter appears the same number of times.
Can you get the rest right without peeking?
Take the timed Quiz: Python Interview Programs quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →