Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,17 @@ five_letters = [word for word in words.words() if len(word)==5 ]
|
|
58 |
six_letters = [word for word in words.words() if len(word)==6 ]
|
59 |
seven_letters = [word for word in words.words() if len(word)==7 ]
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
for word in two_letters:
|
62 |
if all(c in word for c in clue2) and not any(c in word for c in exclusions):
|
|
|
63 |
clue_result2.append(word)
|
64 |
for word in three_letters:
|
65 |
if all(c in word for c in clue3) and not any(c in word for c in exclusions):
|
@@ -77,10 +86,8 @@ for word in seven_letters:
|
|
77 |
if all(c in word for c in clue7) and not any(c in word for c in exclusions):
|
78 |
clue_result7.append(word)
|
79 |
|
80 |
-
|
81 |
st.write(clue_result2)
|
82 |
-
|
83 |
-
st.write(r2score)
|
84 |
st.write(clue_result3)
|
85 |
st.write(clue_result4)
|
86 |
st.write(clue_result5)
|
|
|
58 |
six_letters = [word for word in words.words() if len(word)==6 ]
|
59 |
seven_letters = [word for word in words.words() if len(word)==7 ]
|
60 |
|
61 |
+
#score
|
62 |
+
#score2=0
|
63 |
+
#score3=0
|
64 |
+
#score4=0
|
65 |
+
#score5=0
|
66 |
+
#score6=0
|
67 |
+
#score7=0
|
68 |
+
|
69 |
for word in two_letters:
|
70 |
if all(c in word for c in clue2) and not any(c in word for c in exclusions):
|
71 |
+
score2+=1
|
72 |
clue_result2.append(word)
|
73 |
for word in three_letters:
|
74 |
if all(c in word for c in clue3) and not any(c in word for c in exclusions):
|
|
|
86 |
if all(c in word for c in clue7) and not any(c in word for c in exclusions):
|
87 |
clue_result7.append(word)
|
88 |
|
|
|
89 |
st.write(clue_result2)
|
90 |
+
st.write("Score for 2 letter words = ", (score2 * 2 ))
|
|
|
91 |
st.write(clue_result3)
|
92 |
st.write(clue_result4)
|
93 |
st.write(clue_result5)
|