Kernighans large earthquake problem: Difference between revisions
Content added Content deleted
Line 347: | Line 347: | ||
<lang python>from os.path import expanduser |
<lang python>from os.path import expanduser |
||
from functools import (reduce) |
from functools import (reduce) |
||
import re |
|||
Line 367: | Line 366: | ||
# GENERIC ABSTRACTIONS ---------------------------- |
# GENERIC ABSTRACTIONS ---------------------------- |
||
⚫ | |||
⚫ | |||
⚫ | |||
Line 388: | Line 383: | ||
def readFile(fp): |
def readFile(fp): |
||
return open(expanduser(fp)).read() |
return open(expanduser(fp)).read() |
||
⚫ | |||
⚫ | |||
⚫ | |||