vthamaraikannan1@gmail.com commited on
Commit ·
127e883
1
Parent(s): 0595591
changes in utility file
Browse files
app.py
CHANGED
|
@@ -38,11 +38,35 @@ course_topics = {
|
|
| 38 |
|
| 39 |
st.sidebar.title("Python Course")
|
| 40 |
|
| 41 |
-
pages = ["Course Content", "Practice Coding"]
|
| 42 |
selected_page = st.sidebar.selectbox("Select a Page", pages)
|
| 43 |
|
| 44 |
selected_topic = "Introduction to Python"
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
if selected_page == "Course Content":
|
| 47 |
if 'question_index' not in st.session_state:
|
| 48 |
st.session_state.question_index = 0
|
|
|
|
| 38 |
|
| 39 |
st.sidebar.title("Python Course")
|
| 40 |
|
| 41 |
+
pages = ["Home","Course Content", "Practice Coding"]
|
| 42 |
selected_page = st.sidebar.selectbox("Select a Page", pages)
|
| 43 |
|
| 44 |
selected_topic = "Introduction to Python"
|
| 45 |
|
| 46 |
+
if selected_page == "Home":
|
| 47 |
+
st.title("Introduction to Python Course")
|
| 48 |
+
st.subheader("Welcome to the Python Basics Course!")
|
| 49 |
+
|
| 50 |
+
# Introduction and Overview
|
| 51 |
+
st.write("In this course, we’ll cover the fundamentals of Python programming. Here’s an outline of the topics you will learn:")
|
| 52 |
+
|
| 53 |
+
# Topic List
|
| 54 |
+
topics = [
|
| 55 |
+
"Introduction to Python",
|
| 56 |
+
"Data Types and Type Conversion",
|
| 57 |
+
"Operators",
|
| 58 |
+
"Functions",
|
| 59 |
+
"Data Structures",
|
| 60 |
+
"Modules and Packages",
|
| 61 |
+
"Exception Handling",
|
| 62 |
+
"OOP Basics"
|
| 63 |
+
]
|
| 64 |
+
|
| 65 |
+
for topic in topics:
|
| 66 |
+
st.markdown(f"- **{topic}**")
|
| 67 |
+
|
| 68 |
+
st.write("\nThis course is designed for beginners to give you a solid foundation in Python programming.")
|
| 69 |
+
|
| 70 |
if selected_page == "Course Content":
|
| 71 |
if 'question_index' not in st.session_state:
|
| 72 |
st.session_state.question_index = 0
|