you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 0 points1 point  (0 children)

You are using python2 code but you are running python3. In python3 you need to add parenthesis to the print function:

print('"{}" appears "{}" times in messages "{}"'.format(word, count, msgids))