Skip to content

Instantly share code, notes, and snippets.

View Ayush-iitkgp's full-sized avatar

Ayush Pandey Ayush-iitkgp

View GitHub Profile
@Ayush-iitkgp
Ayush-iitkgp / code.py
Last active April 4, 2019 13:31
Fineway
# 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"):