lanna_lalala;- commited on
Commit
a6f1425
·
1 Parent(s): 6c5df62

update -alanna

Browse files
Files changed (1) hide show
  1. 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
- lessons_by_level = {
39
  "beginner": [
40
  {
41
  "id": 1,
42
- "title": "Introduction to Money",
43
- "description": "Learn the basics of what money is, its history and how it works",
44
  "duration": "20 min",
45
  "completed": False,
46
  "locked": False,
47
  "difficulty": "Easy",
48
- "content": "",
49
  "topics": [
50
- "What is money? (coins, notes, digital money)",
51
- "History of money in Jamaica (Jamaican coins, notes, and famous historical figures)",
52
- "How money is used in daily life",
53
- "Different types of currencies",
54
- "Recognizing and counting Jamaican coins and notes",
55
- "Play: Money Match", "Quiz", "Summary"
 
 
56
  ]
57
  },
58
  {
59
  "id": 2,
60
- "title": "Earning and Spending",
61
- "description": "Start building the habit of saving money",
62
- "duration": "8 min",
63
  "completed": False,
64
  "locked": False,
65
  "difficulty": "Easy",
66
  "topics": [
67
- "Jobs people do to earn money",
68
- "Allowances and pocket money",
69
- "Basic needs vs wants",
70
- "Making choices when spending",
71
- "Simple budget for small items",
72
- "Play: Budget Builder", "Quiz", "Summary"
 
 
73
  ]
74
  },
75
  {
76
  "id": 3,
77
- "title": "Saving Money",
78
- "description": "Learn to distinguish between essential and optional purchases",
79
- "duration": "12 min",
80
  "completed": False,
81
  "locked": False,
82
  "difficulty": "Easy",
83
  "topics": [
84
- "Why saving is important",
85
- "Where to save (piggy banks, banks)",
86
- "Basic needs vs wants",
87
- "Setting small savings goals",
88
- "Reward of saving (buying a toy, snack, or school supplies)",
89
- "Play Piggy Bank challenge", "Quiz", "Summary"
 
 
90
  ]
91
  },
92
  {
93
  "id": 4,
94
- "title": "Simple Financial Responsibility",
95
- "description": "Learn to distinguish between essential and optional purchases",
96
- "duration": "12 min",
97
  "completed": False,
98
  "locked": False,
99
  "difficulty": "Easy",
100
  "topics": [
101
- "Making smart choices with money",
102
- "Giving and sharing (donations, helping family/friends)",
103
- "Recognizing scams or unsafe spending",
104
- "Introduction to keeping a simple money diary",
105
- "Play Smart Shopper", "Quiz", "Summary"
 
 
 
106
  ]
107
  }
108
  ],
109
  "intermediate": [
110
  {
111
  "id": 5,
112
- "title": "Understanding Compound Interest",
113
- "description": "Learn how your money can grow exponentially over time",
114
- "duration": "15 min",
115
- "completed": True,
116
  "locked": False,
117
  "difficulty": "Medium",
118
- "content": "Compound interest is the eighth wonder of the world..."
 
 
 
 
 
 
 
 
 
119
  },
120
  {
121
  "id": 6,
122
- "title": "Building an Emergency Fund",
123
- "description": "Create a financial safety net for unexpected expenses",
124
- "duration": "12 min",
125
  "completed": False,
126
  "locked": False,
127
  "difficulty": "Medium",
128
- "content": "An emergency fund is your financial security blanket..."
 
 
 
 
 
 
 
 
 
129
  },
130
  {
131
  "id": 7,
132
- "title": "Introduction to Investing",
133
- "description": "Basic concepts of making your money work for you",
134
- "duration": "18 min",
135
  "completed": False,
136
  "locked": False,
137
  "difficulty": "Medium",
138
- "content": "Investing is putting your money to work..."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
140
  ],
141
  "advanced": [
142
  {
143
- "id": 8,
144
- "title": "Stock Market Mastery",
145
- "description": "Advanced strategies for stock market investing",
146
- "duration": "25 min",
147
  "completed": False,
148
  "locked": True,
149
  "difficulty": "Hard",
150
- "content": "Deep dive into stock analysis, market trends..."
 
 
 
 
 
 
 
 
 
151
  },
152
  {
153
- "id": 9,
154
- "title": "Retirement Planning Strategies",
155
- "description": "Advanced retirement and tax-advantaged planning",
156
  "duration": "30 min",
157
  "completed": False,
158
  "locked": True,
159
  "difficulty": "Hard",
160
- "content": "Advanced retirement planning strategies including 401(k)..."
 
 
 
 
 
 
 
 
 
161
  },
162
  {
163
- "id": 10,
164
- "title": "Real Estate Investment",
165
- "description": "Building wealth through property investment",
166
- "duration": "22 min",
167
  "completed": False,
168
  "locked": True,
169
  "difficulty": "Hard",
170
- "content": "Learn about real estate as an investment vehicle..."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  }