Counter is an object of collections module, and it is a dict subclass for counting hashable objects, in Python 3.
How to list out Python reserved words
July 1st, 2009 | No CommentsTo list out the Python reserved words, just enter the following lines into the Python interpreter.
>>> import keyword
>>> print(keyword.kwlist)
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue',
'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global',
'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass',
'raise', 'return', 'try', 'while', 'with', 'yield']

Python Reserved Words
Count the number of words using Python
June 1st, 2009 | No CommentsThis article represents a way to count the number of words, the number of unique words, and the number of each word occurrences in a text file.
How to run Python inside vim
May 30th, 2009 | No CommentsTo run the current open Python program in vim, type:
:!python %
