Counter

Report a typo

Look at the code below:

from collections import Counter

text = ("Chessboard is a square board divided into sixty-four alternating dark and light squares, used for "
        "playing chess or draughts.")
text_list = text.lower().split()

freq_counter = Counter(text_list)

What will be the output of the following code?

print(freq_counter["draughts"])
print(freq_counter["square"])
print(freq_counter["chessboard"])
Select one option from the list
___

Create a free account to access the full topic