Spaces:
Sleeping
Sleeping
Nazia Nafis
commited on
Commit
•
60e0180
1
Parent(s):
0ed3a59
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,10 @@ inclusions = st.text_input(label="Type in the letters in green/yellow:")
|
|
18 |
st.markdown("### Exclusion Letters")
|
19 |
exclusions = st.text_input(label="Type in the letters in grey:")
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
18 |
st.markdown("### Exclusion Letters")
|
19 |
exclusions = st.text_input(label="Type in the letters in grey:")
|
20 |
|
21 |
+
if inclusions is not None:
|
22 |
+
st.markdown("## List of All Possible Words")
|
23 |
+
clue_result=[]
|
24 |
+
for word in five_letters:
|
25 |
+
if all(c in word for c in inclusions)and not any(c in word for c in exclusions):
|
26 |
+
clue_result.append(word)
|
27 |
+
st.write(clue_result)
|