SuchithTissera commited on
Commit
3df74dc
·
verified ·
1 Parent(s): e55ad8d

Update pages/4_Mini_Game.py

Browse files
Files changed (1) hide show
  1. pages/4_Mini_Game.py +1 -1
pages/4_Mini_Game.py CHANGED
@@ -142,7 +142,7 @@ elif st.session_state.game_started and not st.session_state.game_finished:
142
  st.rerun()
143
 
144
  else:
145
- correct_answer = row["class"]
146
 
147
  if st.session_state.selected_option == correct_answer:
148
  st.success(f"Correct! The answer is {correct_answer}.")
 
142
  st.rerun()
143
 
144
  else:
145
+ correct_answer = str(row["class"]).strip().rstrip(".")
146
 
147
  if st.session_state.selected_option == correct_answer:
148
  st.success(f"Correct! The answer is {correct_answer}.")