Skip to content

Instantly share code, notes, and snippets.

Avatar

Ayush Pandey Ayush-iitkgp

View GitHub Profile
View code.py
# How to run the program
# 1. python code.py
import operator
import re
def print_word_count(filename):
regex = re.compile('[^a-zA-Z]')
word_count = {}
for line in open (filename, "r"):