Skip to content

Instantly share code, notes, and snippets.

@karanparikh
karanparikh / challenge.py
Created Oct 1, 2015
Script to analyze blog posts I wrote
View challenge.py
from sys import argv
from os import listdir
from re import split
from collections import Counter
class Post(object):
def __init__(self, title, content):
self.title = title
self.content = map(lambda w: w.lower(), content)