File size: 1,101 Bytes
18ca070
dd1981b
 
9f5efd9
 
18ca070
674a813
 
dd1981b
 
 
 
 
 
 
 
 
 
 
 
 
 
674a813
 
dd1981b
 
 
 
 
 
4fd3a9c
77708a2
 
9f5efd9
 
 
8bc5bae
77708a2
 
dd1981b
18ca070
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import streamlit as st
from utils.conceptexcerpts import concept_excerpts
from utils.exampleexcerpts import example_excerpts
import time
from utils.firebase_util import push_study_time_data

st.set_page_config(page_title="LSAT Group B", page_icon="📘")
st.title("📘Logical Reasoning: Group B")

choices = ["A", "B", "C", "D", "E"]

# Dropdown to select topic
topic = st.selectbox("Choose a topic to review:", list(concept_excerpts.keys()))

# Display Concept
st.subheader("Concept Overview")
st.markdown(concept_excerpts[topic])

# Display Question
st.subheader("Practice Question")
q = example_excerpts[topic]
st.write(q[0])
for i, choice in enumerate(choices):
    st.write(f"{i}). {choice}")

# Show answer
if st.checkbox("Show Answer"):
    st.success(f"Correct Answer: {q[1]}")


next_page = st.button("Click here when finished")

if next_page:
    print(time.time())
    print(st.session_state.textbook_start_time)
    push_study_time_data(time.time() - st.session_state.textbook_start_time)
    st.session_state.postquiz_start_time = time.time()
    st.switch_page("pages/postquiz.py")