Skip to content

Instantly share code, notes, and snippets.

@libswan
libswan / L12 Problem 7 - V2
Last active December 16, 2015 02:19
V2. Attempt at converting into Classes. L12 Problem 7 - "present an angle of the data (words.txt) that you find interesting".
import random
import string
import pylab
WORDLIST_FILENAME = "words.txt"
def loadWords():
print "Loading word list from file..."
# inFile: file
inFile = open(WORDLIST_FILENAME, 'r', 0)
@libswan
libswan / L12 Problem 7 - V1
Created April 11, 2013 08:40
V1. L12 Problem 7 - "present an angle of the data (words.txt) that you find interesting".
import random
import string
import pylab
WORDLIST_FILENAME = "words.txt"
def loadWords():
print "Loading word list from file..."
# inFile: file
inFile = open(WORDLIST_FILENAME, 'r', 0)