Skip to content

Commit 606a388

Browse files
committed
Bugfix: dates updated in lab_03
1 parent 0ebbaab commit 606a388

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

laboratory/docs/chapter/03.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def max_lessons_hours(a_list, max_hours):
146146
```
147147
</div>
148148

149-
**1.d)** One of the students attending the course, Tim Berners Lee, thinks he knows enough about the materials taught in the course, so he will take a break and go on a vacation on 12/11/21 for two weeks. Right after that, when he returns, he will attend the lectures again, starting from the first available one according to the schedule until the end of the course. Write down a portion of the code that prints the titles of the lectures that Tim Berners Lee will attend at the end of the course.
149+
**1.d)** One of the students attending the course, Tim Berners Lee, thinks he knows enough about the materials taught in the course, so he will take a break and go on a vacation on 11/11/22 for two weeks. Right after that, when he returns, he will attend the lectures again, starting from the first available one according to the schedule until the end of the course. Write down a portion of the code that prints the titles of the lectures that Tim Berners Lee will attend at the end of the course.
150150

151151
**Hint:** take a look at the `datetime` library
152152

@@ -155,7 +155,7 @@ def max_lessons_hours(a_list, max_hours):
155155
```py
156156
from datetime import datetime
157157

158-
vacation_date = datetime.strptime("12/11/21", '%d/%m/%y')
158+
vacation_date = datetime.strptime("11/11/22", '%d/%m/%y')
159159
back_date = vacation_date + datetime.timedelta(weeks=2)
160160
result = []
161161
i = 0

laboratory/site/chapter/03/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,14 @@ <h3 id="1st-exercise">1st Exercise</h3>
244244

245245
</div>
246246

247-
<p><strong>1.d)</strong> One of the students attending the course, Tim Berners Lee, thinks he knows enough about the materials taught in the course, so he will take a break and go on a vacation on 12/11/21 for two weeks. Right after that, when he returns, he will attend the lectures again, starting from the first available one according to the schedule until the end of the course. Write down a portion of the code that prints the titles of the lectures that Tim Berners Lee will attend at the end of the course.</p>
247+
<p><strong>1.d)</strong> One of the students attending the course, Tim Berners Lee, thinks he knows enough about the materials taught in the course, so he will take a break and go on a vacation on 11/11/22 for two weeks. Right after that, when he returns, he will attend the lectures again, starting from the first available one according to the schedule until the end of the course. Write down a portion of the code that prints the titles of the lectures that Tim Berners Lee will attend at the end of the course.</p>
248248
<p><strong>Hint:</strong> take a look at the <code>datetime</code> library</p>
249249
<p><button class="toggle-solution btn btn-light" onclick="toggle_click(this,'sol_3_1d')">Show solution</button></p>
250250
<div class="solution-code" id="sol_3_1d">
251251

252252
<pre><code class="language-py">from datetime import datetime
253253

254-
vacation_date = datetime.strptime(&quot;12/11/21&quot;, '%d/%m/%y')
254+
vacation_date = datetime.strptime(&quot;11/11/22&quot;, '%d/%m/%y')
255255
back_date = vacation_date + datetime.timedelta(weeks=2)
256256
result = []
257257
i = 0

laboratory/site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,5 +234,5 @@ <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
234234

235235
<!--
236236
MkDocs version : 1.4.2
237-
Build Date UTC : 2022-11-09 10:55:48.230350+00:00
237+
Build Date UTC : 2022-11-11 09:06:29.868933+00:00
238238
-->

laboratory/site/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

laboratory/site/sitemap.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>None</loc>
5-
<lastmod>2022-11-09</lastmod>
5+
<lastmod>2022-11-11</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>None</loc>
10-
<lastmod>2022-11-09</lastmod>
10+
<lastmod>2022-11-11</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>None</loc>
15-
<lastmod>2022-11-09</lastmod>
15+
<lastmod>2022-11-11</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>None</loc>
20-
<lastmod>2022-11-09</lastmod>
20+
<lastmod>2022-11-11</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>None</loc>
25-
<lastmod>2022-11-09</lastmod>
25+
<lastmod>2022-11-11</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>None</loc>
30-
<lastmod>2022-11-09</lastmod>
30+
<lastmod>2022-11-11</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>None</loc>
35-
<lastmod>2022-11-09</lastmod>
35+
<lastmod>2022-11-11</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>None</loc>
40-
<lastmod>2022-11-09</lastmod>
40+
<lastmod>2022-11-11</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>None</loc>
45-
<lastmod>2022-11-09</lastmod>
45+
<lastmod>2022-11-11</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
</urlset>

laboratory/site/sitemap.xml.gz

-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)