Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 442 Bytes
def load():
f = open("words3.txt", "r")
lines = f.readlines()
words = []
scores = []
for line in lines:
try:
(word, score) = line.rstrip().split(" ")
if not (word in words):
words.append(word)
if score == "p":
scores.append(1)
elif score == "n":
scores.append(-1)
else:
print "FUCK", word
exit()
except:
pass
return (words, scores)
You can’t perform that action at this time.