lanna_lalala;- commited on
Commit ·
a6f1425
1
Parent(s): 6c5df62
update -alanna
Browse files- phase/Student_view/lesson.py +163 -63
phase/Student_view/lesson.py
CHANGED
|
@@ -35,139 +35,239 @@ MINI_QUIZ_MIN = 2
|
|
| 35 |
MINI_QUIZ_MAX = 4
|
| 36 |
|
| 37 |
# --- Data structure for lessons ---
|
| 38 |
-
|
| 39 |
"beginner": [
|
| 40 |
{
|
| 41 |
"id": 1,
|
| 42 |
-
"title": "
|
| 43 |
-
"description": "Learn the basics of what money is, its
|
| 44 |
"duration": "20 min",
|
| 45 |
"completed": False,
|
| 46 |
"locked": False,
|
| 47 |
"difficulty": "Easy",
|
| 48 |
-
"content": "",
|
| 49 |
"topics": [
|
| 50 |
-
"What is
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
-
"
|
| 55 |
-
"Play: Money Match",
|
|
|
|
|
|
|
| 56 |
]
|
| 57 |
},
|
| 58 |
{
|
| 59 |
"id": 2,
|
| 60 |
-
"title": "
|
| 61 |
-
"description": "Start building the habit of
|
| 62 |
-
"duration": "
|
| 63 |
"completed": False,
|
| 64 |
"locked": False,
|
| 65 |
"difficulty": "Easy",
|
| 66 |
"topics": [
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
-
"
|
| 70 |
-
"
|
| 71 |
-
"
|
| 72 |
-
"Play: Budget Builder",
|
|
|
|
|
|
|
| 73 |
]
|
| 74 |
},
|
| 75 |
{
|
| 76 |
"id": 3,
|
| 77 |
-
"title": "
|
| 78 |
-
"description": "Learn
|
| 79 |
-
"duration": "
|
| 80 |
"completed": False,
|
| 81 |
"locked": False,
|
| 82 |
"difficulty": "Easy",
|
| 83 |
"topics": [
|
| 84 |
-
"
|
| 85 |
-
"
|
| 86 |
-
"
|
| 87 |
-
"
|
| 88 |
-
"
|
| 89 |
-
"Play Piggy Bank
|
|
|
|
|
|
|
| 90 |
]
|
| 91 |
},
|
| 92 |
{
|
| 93 |
"id": 4,
|
| 94 |
-
"title": "Simple
|
| 95 |
-
"description": "
|
| 96 |
-
"duration": "
|
| 97 |
"completed": False,
|
| 98 |
"locked": False,
|
| 99 |
"difficulty": "Easy",
|
| 100 |
"topics": [
|
| 101 |
-
"
|
| 102 |
-
"
|
| 103 |
-
"
|
| 104 |
-
"
|
| 105 |
-
"
|
|
|
|
|
|
|
|
|
|
| 106 |
]
|
| 107 |
}
|
| 108 |
],
|
| 109 |
"intermediate": [
|
| 110 |
{
|
| 111 |
"id": 5,
|
| 112 |
-
"title": "
|
| 113 |
-
"description": "
|
| 114 |
-
"duration": "
|
| 115 |
-
"completed":
|
| 116 |
"locked": False,
|
| 117 |
"difficulty": "Medium",
|
| 118 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
},
|
| 120 |
{
|
| 121 |
"id": 6,
|
| 122 |
-
"title": "
|
| 123 |
-
"description": "
|
| 124 |
-
"duration": "
|
| 125 |
"completed": False,
|
| 126 |
"locked": False,
|
| 127 |
"difficulty": "Medium",
|
| 128 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
},
|
| 130 |
{
|
| 131 |
"id": 7,
|
| 132 |
-
"title": "Introduction to
|
| 133 |
-
"description": "
|
| 134 |
-
"duration": "
|
| 135 |
"completed": False,
|
| 136 |
"locked": False,
|
| 137 |
"difficulty": "Medium",
|
| 138 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
}
|
| 140 |
],
|
| 141 |
"advanced": [
|
| 142 |
{
|
| 143 |
-
"id":
|
| 144 |
-
"title": "
|
| 145 |
-
"description": "
|
| 146 |
-
"duration": "
|
| 147 |
"completed": False,
|
| 148 |
"locked": True,
|
| 149 |
"difficulty": "Hard",
|
| 150 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
},
|
| 152 |
{
|
| 153 |
-
"id":
|
| 154 |
-
"title": "
|
| 155 |
-
"description": "
|
| 156 |
"duration": "30 min",
|
| 157 |
"completed": False,
|
| 158 |
"locked": True,
|
| 159 |
"difficulty": "Hard",
|
| 160 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
},
|
| 162 |
{
|
| 163 |
-
"id":
|
| 164 |
-
"title": "
|
| 165 |
-
"description": "
|
| 166 |
-
"duration": "
|
| 167 |
"completed": False,
|
| 168 |
"locked": True,
|
| 169 |
"difficulty": "Hard",
|
| 170 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
}
|
| 172 |
]
|
| 173 |
}
|
|
|
|
| 35 |
MINI_QUIZ_MAX = 4
|
| 36 |
|
| 37 |
# --- Data structure for lessons ---
|
| 38 |
+
{
|
| 39 |
"beginner": [
|
| 40 |
{
|
| 41 |
"id": 1,
|
| 42 |
+
"title": "Understanding Money",
|
| 43 |
+
"description": "Learn the basics of what money is, its uses, and how to manage it.",
|
| 44 |
"duration": "20 min",
|
| 45 |
"completed": False,
|
| 46 |
"locked": False,
|
| 47 |
"difficulty": "Easy",
|
|
|
|
| 48 |
"topics": [
|
| 49 |
+
"What is Money?",
|
| 50 |
+
"Needs vs. Wants",
|
| 51 |
+
"Earning Money",
|
| 52 |
+
"Saving Money",
|
| 53 |
+
"Spending Wisely",
|
| 54 |
+
"Play: Money Match",
|
| 55 |
+
"Quiz",
|
| 56 |
+
"Summary: My Money Plan"
|
| 57 |
]
|
| 58 |
},
|
| 59 |
{
|
| 60 |
"id": 2,
|
| 61 |
+
"title": "Basic Budgeting",
|
| 62 |
+
"description": "Start building the habit of planning and managing money through budgeting.",
|
| 63 |
+
"duration": "20 min",
|
| 64 |
"completed": False,
|
| 65 |
"locked": False,
|
| 66 |
"difficulty": "Easy",
|
| 67 |
"topics": [
|
| 68 |
+
"What is a Budget?",
|
| 69 |
+
"Income and Expenses",
|
| 70 |
+
"Profit and Loss",
|
| 71 |
+
"Saving Goals",
|
| 72 |
+
"Making Choices",
|
| 73 |
+
"Play: Budget Builder",
|
| 74 |
+
"Quiz",
|
| 75 |
+
"Summary: My First Budget"
|
| 76 |
]
|
| 77 |
},
|
| 78 |
{
|
| 79 |
"id": 3,
|
| 80 |
+
"title": "Money in Action",
|
| 81 |
+
"description": "Learn how money is used in everyday transactions and its role in society.",
|
| 82 |
+
"duration": "20 min",
|
| 83 |
"completed": False,
|
| 84 |
"locked": False,
|
| 85 |
"difficulty": "Easy",
|
| 86 |
"topics": [
|
| 87 |
+
"Paying for Things",
|
| 88 |
+
"Keeping Track of Money",
|
| 89 |
+
"What Are Taxes?",
|
| 90 |
+
"Giving and Sharing",
|
| 91 |
+
"Money Safety",
|
| 92 |
+
"Play: Piggy Bank Challenge",
|
| 93 |
+
"Quiz",
|
| 94 |
+
"Summary: Money Journal"
|
| 95 |
]
|
| 96 |
},
|
| 97 |
{
|
| 98 |
"id": 4,
|
| 99 |
+
"title": "Simple Business Ideas",
|
| 100 |
+
"description": "Explore the basics of starting a small business and earning profit.",
|
| 101 |
+
"duration": "20 min",
|
| 102 |
"completed": False,
|
| 103 |
"locked": False,
|
| 104 |
"difficulty": "Easy",
|
| 105 |
"topics": [
|
| 106 |
+
"What is a Business?",
|
| 107 |
+
"Costs in a Business",
|
| 108 |
+
"Revenue in a Business",
|
| 109 |
+
"Profit in a Business",
|
| 110 |
+
"Advertising Basics",
|
| 111 |
+
"Play: Smart Shopper",
|
| 112 |
+
"Quiz",
|
| 113 |
+
"Summary: My Business Plan"
|
| 114 |
]
|
| 115 |
}
|
| 116 |
],
|
| 117 |
"intermediate": [
|
| 118 |
{
|
| 119 |
"id": 5,
|
| 120 |
+
"title": "Advanced Budgeting",
|
| 121 |
+
"description": "Develop skills in creating and managing detailed budgets.",
|
| 122 |
+
"duration": "25 min",
|
| 123 |
+
"completed": False,
|
| 124 |
"locked": False,
|
| 125 |
"difficulty": "Medium",
|
| 126 |
+
"topics": [
|
| 127 |
+
"Budgeting with Percentages",
|
| 128 |
+
"Fixed vs. Variable Expenses",
|
| 129 |
+
"Adjusting a Budget",
|
| 130 |
+
"Savings Interest",
|
| 131 |
+
"Tracking Spending",
|
| 132 |
+
"Play: Budget Tracker",
|
| 133 |
+
"Quiz",
|
| 134 |
+
"Summary: My Monthly Budget"
|
| 135 |
+
]
|
| 136 |
},
|
| 137 |
{
|
| 138 |
"id": 6,
|
| 139 |
+
"title": "Understanding Profit and Loss",
|
| 140 |
+
"description": "Learn how to analyze profit and loss in a business context.",
|
| 141 |
+
"duration": "25 min",
|
| 142 |
"completed": False,
|
| 143 |
"locked": False,
|
| 144 |
"difficulty": "Medium",
|
| 145 |
+
"topics": [
|
| 146 |
+
"Revenue Streams",
|
| 147 |
+
"Calculating Costs",
|
| 148 |
+
"Profit and Loss Statements",
|
| 149 |
+
"Break-Even Point",
|
| 150 |
+
"Loss Prevention",
|
| 151 |
+
"Play: Profit Planner",
|
| 152 |
+
"Quiz",
|
| 153 |
+
"Summary: My Profit Plan"
|
| 154 |
+
]
|
| 155 |
},
|
| 156 |
{
|
| 157 |
"id": 7,
|
| 158 |
+
"title": "Introduction to Banking",
|
| 159 |
+
"description": "Understand how banks work and their role in managing money.",
|
| 160 |
+
"duration": "25 min",
|
| 161 |
"completed": False,
|
| 162 |
"locked": False,
|
| 163 |
"difficulty": "Medium",
|
| 164 |
+
"topics": [
|
| 165 |
+
"What is a Bank?",
|
| 166 |
+
"Savings Accounts",
|
| 167 |
+
"Checking Accounts",
|
| 168 |
+
"Borrowing Money",
|
| 169 |
+
"Banking Safety",
|
| 170 |
+
"Play: Bank Manager",
|
| 171 |
+
"Quiz",
|
| 172 |
+
"Summary: My Bank Plan"
|
| 173 |
+
]
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"id": 8,
|
| 177 |
+
"title": "Economics Basics",
|
| 178 |
+
"description": "Explore foundational economic concepts like supply and demand.",
|
| 179 |
+
"duration": "25 min",
|
| 180 |
+
"completed": False,
|
| 181 |
+
"locked": False,
|
| 182 |
+
"difficulty": "Medium",
|
| 183 |
+
"topics": [
|
| 184 |
+
"Supply and Demand",
|
| 185 |
+
"Opportunity Cost",
|
| 186 |
+
"Producers and Consumers",
|
| 187 |
+
"Price Setting",
|
| 188 |
+
"Economic Choices",
|
| 189 |
+
"Play: Market Simulator",
|
| 190 |
+
"Quiz",
|
| 191 |
+
"Summary: My Market Plan"
|
| 192 |
+
]
|
| 193 |
}
|
| 194 |
],
|
| 195 |
"advanced": [
|
| 196 |
{
|
| 197 |
+
"id": 9,
|
| 198 |
+
"title": "Financial Planning",
|
| 199 |
+
"description": "Learn to create long-term financial plans and understand investments.",
|
| 200 |
+
"duration": "30 min",
|
| 201 |
"completed": False,
|
| 202 |
"locked": True,
|
| 203 |
"difficulty": "Hard",
|
| 204 |
+
"topics": [
|
| 205 |
+
"Long-Term Savings Goals",
|
| 206 |
+
"Compound Interest",
|
| 207 |
+
"Budget Forecasting",
|
| 208 |
+
"Risk and Reward",
|
| 209 |
+
"Financial Goals",
|
| 210 |
+
"Play: Financial Planner",
|
| 211 |
+
"Quiz",
|
| 212 |
+
"Summary: My Financial Plan"
|
| 213 |
+
]
|
| 214 |
},
|
| 215 |
{
|
| 216 |
+
"id": 10,
|
| 217 |
+
"title": "Running a Small Business",
|
| 218 |
+
"description": "Develop skills to plan and grow a small business.",
|
| 219 |
"duration": "30 min",
|
| 220 |
"completed": False,
|
| 221 |
"locked": True,
|
| 222 |
"difficulty": "Hard",
|
| 223 |
+
"topics": [
|
| 224 |
+
"Business Planning",
|
| 225 |
+
"Profit Margins",
|
| 226 |
+
"Managing Cash Flow",
|
| 227 |
+
"Marketing Strategies",
|
| 228 |
+
"Scaling a Business",
|
| 229 |
+
"Play: Business Tycoon",
|
| 230 |
+
"Quiz",
|
| 231 |
+
"Summary: My Business Growth Plan"
|
| 232 |
+
]
|
| 233 |
},
|
| 234 |
{
|
| 235 |
+
"id": 11,
|
| 236 |
+
"title": "Investing Basics",
|
| 237 |
+
"description": "Understand the fundamentals of investing and portfolio management.",
|
| 238 |
+
"duration": "30 min",
|
| 239 |
"completed": False,
|
| 240 |
"locked": True,
|
| 241 |
"difficulty": "Hard",
|
| 242 |
+
"topics": [
|
| 243 |
+
"What is Investing?",
|
| 244 |
+
"Stocks and Shares",
|
| 245 |
+
"Diversification",
|
| 246 |
+
"Returns on Investment",
|
| 247 |
+
"Investment Risks",
|
| 248 |
+
"Play: Investment Game",
|
| 249 |
+
"Quiz",
|
| 250 |
+
"Summary: My Investment Plan"
|
| 251 |
+
]
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"id": 12,
|
| 255 |
+
"title": "Economic Systems",
|
| 256 |
+
"description": "Explore how economies function and their impact on money decisions.",
|
| 257 |
+
"duration": "30 min",
|
| 258 |
+
"completed": False,
|
| 259 |
+
"locked": True,
|
| 260 |
+
"difficulty": "Hard",
|
| 261 |
+
"topics": [
|
| 262 |
+
"Types of Economies",
|
| 263 |
+
"Inflation and Prices",
|
| 264 |
+
"Supply Chain Basics",
|
| 265 |
+
"Global Trade",
|
| 266 |
+
"Economic Impact",
|
| 267 |
+
"Play: Economy Builder",
|
| 268 |
+
"Quiz",
|
| 269 |
+
"Summary: My Economic Model"
|
| 270 |
+
]
|
| 271 |
}
|
| 272 |
]
|
| 273 |
}
|