Update app.py
Browse files
app.py
CHANGED
@@ -58,18 +58,18 @@ def main():
|
|
58 |
|
59 |
|
60 |
# Display questions and answers in a table
|
61 |
-
if
|
62 |
st.subheader("Quiz Questions and Answers:")
|
63 |
# Prepare data for the table
|
64 |
col1, col2 = st.columns(2)
|
65 |
with col1:
|
66 |
st.subheader("Questions")
|
67 |
-
|
68 |
st.write(questions)
|
69 |
|
70 |
with col2:
|
71 |
st.subheader("Answers")
|
72 |
-
|
73 |
st.write(answers)
|
74 |
|
75 |
|
|
|
58 |
|
59 |
|
60 |
# Display questions and answers in a table
|
61 |
+
if questions:
|
62 |
st.subheader("Quiz Questions and Answers:")
|
63 |
# Prepare data for the table
|
64 |
col1, col2 = st.columns(2)
|
65 |
with col1:
|
66 |
st.subheader("Questions")
|
67 |
+
|
68 |
st.write(questions)
|
69 |
|
70 |
with col2:
|
71 |
st.subheader("Answers")
|
72 |
+
|
73 |
st.write(answers)
|
74 |
|
75 |
|