awacke1 commited on
Commit
2ee8757
β€’
1 Parent(s): 008996e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -72,22 +72,27 @@ for word in two_letters:
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):
 
75
  clue_result3.append(word)
76
  for word in four_letters:
77
  if all(c in word for c in clue4) and not any(c in word for c in exclusions):
 
78
  clue_result4.append(word)
79
  for word in five_letters:
80
  if all(c in word for c in clue5) and not any(c in word for c in exclusions):
 
81
  clue_result5.append(word)
82
  for word in six_letters:
83
  if all(c in word for c in clue6) and not any(c in word for c in exclusions):
 
84
  clue_result6.append(word)
85
  for word in seven_letters:
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)
 
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):
75
+ score3+=1
76
  clue_result3.append(word)
77
  for word in four_letters:
78
  if all(c in word for c in clue4) and not any(c in word for c in exclusions):
79
+ score4+=1
80
  clue_result4.append(word)
81
  for word in five_letters:
82
  if all(c in word for c in clue5) and not any(c in word for c in exclusions):
83
+ score5+=1
84
  clue_result5.append(word)
85
  for word in six_letters:
86
  if all(c in word for c in clue6) and not any(c in word for c in exclusions):
87
+ score6+=1
88
  clue_result6.append(word)
89
  for word in seven_letters:
90
  if all(c in word for c in clue7) and not any(c in word for c in exclusions):
91
+ score7+=1
92
  clue_result7.append(word)
93
 
94
  st.write(clue_result2)
95
+ st.write("Score for 2 letter words = ", (tscore2 = score2 * 2 ))
96
  st.write(clue_result3)
97
  st.write(clue_result4)
98
  st.write(clue_result5)