November 2015
Intermediate to advanced
304 pages
5h 23m
English
Chapter 21

1 #!/usr/bin/env python 2 3 import sys, re, operator, string, traceback 4 5 # 6 # The functions 7 # 8 def extract_words(path_to_file): 9 assert(type(path_to_file) is str), "I need a string!" 10 assert(path_to_file), "I need a non-empty string!" 11 12 try: 13 with open(path_to_file) as f: 14 str_data ...