Bhanuprasadchouki commited on
Commit
a5d0dc0
·
verified ·
1 Parent(s): f401dd7

Update mcq_test.py

Browse files
Files changed (1) hide show
  1. mcq_test.py +1 -1
mcq_test.py CHANGED
@@ -104,7 +104,7 @@ def main():
104
  answer = st.radio(
105
  "Select your answer:",
106
  options=['A', 'B', 'C', 'D'], # List of option keys
107
- format_func=lambda x: f"{x}) {current_q['options'].get(x, 'Invalid Option')}",
108
  key=f"question_{st.session_state.current_question}" # Unique key per question
109
  )
110
 
 
104
  answer = st.radio(
105
  "Select your answer:",
106
  options=['A', 'B', 'C', 'D'], # List of option keys
107
+ format_func=lambda x: f"{x}) {current_q['options'].get(x, ' ')}",
108
  key=f"question_{st.session_state.current_question}" # Unique key per question
109
  )
110