🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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"))
  1. A.True True
  2. B.True False
  3. C.False False
  4. 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 →