All pastes #251383 Raw Edit

Miscellany

public text v1 · immutable
#251383 ·published 2006-11-18 02:13 UTC
rendered paste body
def between(a, b, f="/usr/share/dict/words"):
	fd=open(f,"r")
	line=fd.readline()
	for line in fd:
		word = line.strip()
		if word > b:
			break
		if word > a:
			print word
	fd.close()

def between_s(a):
     parts=a.split()
     between(parts[0],parts[2])

bs=between_s