Nazia Nafis commited on
Commit
60e0180
1 Parent(s): 0ed3a59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- st.markdown("## List of All Possible Words")
22
- clue_result=[]
23
- for word in five_letters:
24
- if all(c in word for c in inclusions)and not any(c in word for c in exclusions):
25
- clue_result.append(word)
26
- st.write(clue_result)
 
 
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)