Screenshots are captured in a Docker container with a headless browser. Task: MIL-004#1 Task: MIL-004#2 Task: MIL-004#3 Task: MIL-004#4 Task: MIL-004#5
20 lines
1.3 KiB
Markdown
20 lines
1.3 KiB
Markdown
**English** · [Dansk](Home-da) · [Bahasa Melayu](Home-ms)
|
|
|
|
# Higher or Lower
|
|
|
|
Day 55 of Udemy's *100 Days of Code: The Complete Python Pro Bootcamp*. You build a Flask website that picks a secret number between 0 and 9. You guess by writing a number in the URL, and the page says whether it is too low, too high or correct.
|
|
|
|
This wiki follows the lectures of the day. Each page shows a screenshot of the lecture step and explains what you gain from it.
|
|
|
|
| Page | What you gain |
|
|
| --- | --- |
|
|
| [Lecture 1: Goals](Lecture-1-Goals) | The picture of what you build by the end of the day |
|
|
| [Lecture 2: URL paths](Lecture-2-URL-Paths) | Routes, variable sections in URLs, converters and debug mode |
|
|
| [Lecture 3: Rendering HTML](Lecture-3-Rendering-HTML) | Returning real HTML with styles and images from a route |
|
|
| [Lecture 4: Decorators](Lecture-4-Decorators) | Writing your own decorators that add HTML tags |
|
|
| [Lecture 5: Advanced decorators](Lecture-5-Advanced-Decorators) | `*args` and `**kwargs` in decorators, and a login check |
|
|
| [Lecture 6: Final project](Lecture-6-Final-Project) | The finished Higher or Lower game |
|
|
| [Run and test](Run-and-Test) | How to create `.venv`, run the site and run the tests |
|
|
|
|
The code is in the [repository](https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/055-higher-lower).
|