Skip to content

Commit 3d45eb7

Browse files
authored
Refactor the entire lesson structure (#185)
* Refactor the entire lesson structure * Handle stale content references * Remove mypy override from settings * Remove author example section
1 parent ef77187 commit 3d45eb7

60 files changed

Lines changed: 665 additions & 662 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€ŽAGENTS.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Patterns and conventions
1111

12-
- `main()` must be parameterless and not raise exceptions when run. Examples: `ultimatepython/syntax/function.py`, `ultimatepython/classes/basic_class.py`.
12+
- `main()` must be parameterless and not raise exceptions when run. Examples: `ultimatepython/fundamentals/function.py`, `ultimatepython/oop/basic_class.py`.
1313
- Module structure: docstring, helpers, `main()` demonstrating usage via asserts, `if __name__ == "__main__": main()`.
1414
- Avoid long-running or destructive operations. For filesystem interactions, keep them local to ephemeral files and clean up after running.
1515
- Use `ruff` and `isort` (configured in `pyproject.toml`) for consistency with existing modules.

β€ŽREADME.de.mdβ€Ž

Lines changed: 70 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Sobald das Repository zugΓ€nglich ist, kΓΆnnen Sie mit den eigenstΓ€ndigen
6464
Modulen lernen. Um den grâßtmâglichen Nutzen aus jedem Modul zu ziehen, lesen Sie den Modulcode und führen Sie ihn aus.
6565
Es gibt zwei MΓΆglichkeiten, die Module auszufΓΌhren:
6666

67-
1. FΓΌhren Sie ein einzelnes Modul aus: `python ultimatepython/syntax/variable.py`
67+
1. FΓΌhren Sie ein einzelnes Modul aus: `python ultimatepython/fundamentals/variable.py`
6868
2. FΓΌhren Sie alle Module aus: `python runner.py`
6969

7070
## InhaltsΓΌbersicht
@@ -80,51 +80,56 @@ Es gibt zwei MΓΆglichkeiten, die Module auszufΓΌhren:
8080
- Data model: [Data model](https://docs.python.org/3/reference/datamodel.html) ( πŸ“š, 🀯 )
8181
- Standard library: [The Python Standard Library](https://docs.python.org/3/library/) ( πŸ“š, 🀯 )
8282
- Built-in functions: [Built-in Functions](https://docs.python.org/3/library/functions.html) ( πŸ“š )
83-
2. **Syntax**
84-
- Variable: [Built-in literals](ultimatepython/syntax/variable.py) ( 🍰 )
85-
- Expression: [Numeric operations](ultimatepython/syntax/expression.py) ( 🍰 )
86-
- Bitwise: [Bitwise operators](ultimatepython/syntax/bitwise.py) ( 🍰 ), [One's/Two's Complement](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( πŸ“š )
87-
- Conditional: [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 )
88-
- Loop: [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 )
89-
- Function: [def | lambda](ultimatepython/syntax/function.py) ( 🍰 )
90-
- Walrus operator: [Assignment expressions :=](ultimatepython/syntax/walrus_operator.py) ( 🀯 )
91-
- Argument enforcement: [Positional-only / | Keyword-only *](ultimatepython/syntax/arg_enforcement.py) ( 🀯 )
92-
3. **Daten-Strukturen**
93-
- List: [List operations](ultimatepython/data_structures/list.py) ( 🍰 )
94-
- Tuple: [Tuple operations](ultimatepython/data_structures/tuple.py)
95-
- Set: [Set operations](ultimatepython/data_structures/set.py)
96-
- Dict: [Dictionary operations](ultimatepython/data_structures/dict.py) ( 🍰 )
97-
- Dict union: [Dictionary merge | and |=](ultimatepython/data_structures/dict_union.py) ( 🀯 )
98-
- Comprehension: [list | tuple | set | dict](ultimatepython/data_structures/comprehension.py)
99-
- String: [String operations](ultimatepython/data_structures/string.py) ( 🍰 )
100-
- Deque: [deque](ultimatepython/data_structures/deque.py) ( 🀯 )
101-
- Namedtuple: [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🀯 )
102-
- Defaultdict: [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🀯 )
103-
- Iterator-Tools: [Iterator-Tools](ultimatepython/data_structures/itertools.py) ( 🀯 )
104-
- Time complexity: [cPython operations](https://wiki.python.org/moin/TimeComplexity) ( πŸ“š, 🀯 )
105-
4. **Klassen**
106-
- Basic class: [Basic definition](ultimatepython/classes/basic_class.py) ( 🍰 )
107-
- Inheritance: [Inheritance](ultimatepython/classes/inheritance.py) ( 🍰 )
108-
- Abstract class: [Abstract definition](ultimatepython/classes/abstract_class.py)
109-
- Exception class: [Exception definition](ultimatepython/classes/exception_class.py)
110-
- Iterator class: [Iterator definition | yield](ultimatepython/classes/iterator_class.py) ( 🀯 )
111-
- Encapsulation: [Encapsulation definition](ultimatepython/classes/encapsulation.py)
83+
2. **Grundlagen**
84+
- Variable: [Built-in literals](ultimatepython/fundamentals/variable.py) ( 🍰 )
85+
- Expression: [Numeric operations](ultimatepython/fundamentals/expression.py) ( 🍰 )
86+
- String: [String operations](ultimatepython/fundamentals/string.py) ( 🍰 )
87+
- List: [List operations](ultimatepython/fundamentals/list.py) ( 🍰 )
88+
- Tuple: [Tuple operations](ultimatepython/fundamentals/tuple.py)
89+
- Set: [Set operations](ultimatepython/fundamentals/set.py)
90+
- Dict: [Dictionary operations](ultimatepython/fundamentals/dict.py) ( 🍰 )
91+
- Conditional: [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 )
92+
- Loop: [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 )
93+
- Function: [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 )
94+
- Comprehension: [list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py)
95+
3. **Objektorientierte Programmierung**
96+
- Basic class: [Basic definition](ultimatepython/oop/basic_class.py) ( 🍰 )
97+
- Inheritance: [Inheritance](ultimatepython/oop/inheritance.py) ( 🍰 )
98+
- Encapsulation: [Encapsulation definition](ultimatepython/oop/encapsulation.py)
99+
- Abstract class: [Abstract definition](ultimatepython/oop/abstract_class.py)
100+
- Exception class: [Exception definition](ultimatepython/oop/exception_class.py)
101+
- Iterator class: [Iterator definition | yield](ultimatepython/oop/iterator_class.py) ( 🀯 )
102+
- Mixin: [Mixin definition](ultimatepython/oop/mixin.py) ( 🀯 )
103+
- Method resolution order: [mro](ultimatepython/oop/mro.py) ( 🀯 )
104+
4. **Standardbibliothek**
105+
- File Handling: [File Handling](ultimatepython/stdlib/file_handling.py) ( 🀯 )
106+
- Regular expression: [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🀯 )
107+
- Data format: [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🀯 )
108+
- Datetime: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🀯 )
112109
5. **Fortgeschrittene**
113110
- Decorator: [Decorator definition | wraps](ultimatepython/advanced/decorator.py) ( 🀯 )
114-
- File Handling: [File Handling](ultimatepython/advanced/file_handling.py) ( 🀯 )
115111
- Context manager: [Context managers](ultimatepython/advanced/context_manager.py) ( 🀯 )
116-
- Method resolution order: [mro](ultimatepython/advanced/mro.py) ( 🀯 )
117-
- Mixin: [Mixin definition](ultimatepython/advanced/mixin.py) ( 🀯 )
118112
- Metaclass: [Metaclass definition](ultimatepython/advanced/meta_class.py) ( 🀯 )
119-
- Thread: [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🀯 )
120-
- Asyncio: [async | await](ultimatepython/advanced/async.py) ( 🀯 )
121113
- Weak reference: [weakref](ultimatepython/advanced/weak_ref.py) ( 🀯 )
122-
- Benchmark: [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🀯 )
123-
- Mocking: [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🀯 )
124-
- Regular expression: [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🀯 )
125-
- Data format: [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🀯 )
126-
- Datetime: [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🀯 )
114+
- Walrus operator: [Assignment expressions :=](ultimatepython/advanced/walrus_operator.py) ( 🀯 )
115+
- Argument enforcement: [Positional-only / | Keyword-only *](ultimatepython/advanced/arg_enforcement.py) ( 🀯 )
127116
- Pattern Matching: [match | case](ultimatepython/advanced/pattern_matching.py) ( 🀯 )
117+
- Template strings: [Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🀯 )
118+
6. **NebenlΓ€ufigkeit**
119+
- Thread: [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🀯 )
120+
- Asyncio: [async | await](ultimatepython/concurrency/async.py) ( 🀯 )
121+
- Subinterpreters: [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🀯 )
122+
7. **Softwaretechnik**
123+
- Mocking: [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🀯 )
124+
- Benchmark: [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🀯 )
125+
- Bitwise: [Bitwise operators](ultimatepython/engineering/bitwise.py) ( 🍰 ), [One's/Two's Complement](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( πŸ“š )
126+
- Deque: [deque](ultimatepython/engineering/deque.py) ( 🀯 )
127+
- Namedtuple: [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🀯 )
128+
- Defaultdict: [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🀯 )
129+
- Iterator-Tools: [Iterator-Tools](ultimatepython/engineering/itertools.py) ( 🀯 )
130+
- Dict union: [Dictionary merge | and |=](ultimatepython/engineering/dict_union.py) ( 🀯 )
131+
- Heap: [heap queue](ultimatepython/engineering/heap.py) ( 🀯 )
132+
- Time complexity: [cPython operations](https://wiki.python.org/moin/TimeComplexity) ( πŸ“š, 🀯 )
128133

129134
## ZusΓ€tzliche Ressourcen
130135

@@ -136,51 +141,43 @@ Es gibt zwei MΓΆglichkeiten, die Module auszufΓΌhren:
136141

137142
Lernen Sie weiter, indem Sie von anderen Quellen lesen.
138143

144+
#### Kern-Python & Muster
145+
139146
- [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python) ( πŸ‘” , πŸ§ͺ )
140147
- [faif/python-patterns](https://github.com/faif/python-patterns) ( πŸ‘” , πŸ§ͺ )
141148
- [geekcomputers/Python](https://github.com/geekcomputers/Python) ( πŸ§ͺ )
142-
- [trekhleb/homemade-machine-learning](https://github.com/trekhleb/homemade-machine-learning) ( πŸ§ͺ )
143-
- [karan/Projects](https://github.com/karan/Projects) ( 🧠 )
144-
- [MunGell/awesome-for-beginners](https://github.com/MunGell/awesome-for-beginners) ( 🧠 )
145-
- [vinta/awesome-python](https://github.com/vinta/awesome-python)
146-
- [academic/awesome-datascience](https://github.com/academic/awesome-datascience)
147-
- [josephmisiti/awesome-machine-learning](https://github.com/josephmisiti/awesome-machine-learning)
148-
- [ZuzooVn/machine-learning-for-software-engineers](https://github.com/ZuzooVn/machine-learning-for-software-engineers)
149-
- [30-seconds/30-seconds-of-python](https://github.com/30-seconds/30-seconds-of-python) ( πŸ§ͺ )
150-
- [ml-tooling/best-of-python](https://github.com/ml-tooling/best-of-python)
151149
- [practical-tutorials/project-based-learning](https://github.com/practical-tutorials/project-based-learning#python)
152-
- [freeCodeCamp/freeCodeCamp](https://github.com/freeCodeCamp/freeCodeCamp) ( πŸ‘” )
150+
151+
#### Data Science & Machine Learning
152+
153+
- [trekhleb/homemade-machine-learning](https://github.com/trekhleb/homemade-machine-learning) ( πŸ§ͺ )
153154
- [microsoft/ML-For-Beginners](https://github.com/microsoft/ML-For-Beginners) ( πŸ§ͺ )
154155
- [microsoft/Data-Science-For-Beginners](https://github.com/microsoft/Data-Science-For-Beginners) ( πŸ§ͺ )
155-
- [Avik-Jain/100-Days-Of-ML-Code](https://github.com/Avik-Jain/100-Days-Of-ML-Code) ( πŸ§ͺ )
156-
157-
### Projekte des Autors
156+
- [academic/awesome-datascience](https://github.com/academic/awesome-datascience)
157+
- [josephmisiti/awesome-machine-learning](https://github.com/josephmisiti/awesome-machine-learning)
158158

159-
Projekte, die ich mit Python erstellt habe und die zeigen, was man nach dem Erlernen dieser Konzepte erstellen kann:
159+
#### Kuratierte Listen & Projektideen
160160

161-
- [huangsam/chowist](https://github.com/huangsam/chowist) ( πŸ§ͺ )
162-
- [huangsam/githooks](https://github.com/huangsam/githooks) ( πŸ§ͺ )
163-
- [huangsam/ragchain](https://github.com/huangsam/ragchain) ( πŸ§ͺ )
164-
- [huangsam/mailprune](https://github.com/huangsam/mailprune) ( πŸ§ͺ )
161+
- [MunGell/awesome-for-beginners](https://github.com/MunGell/awesome-for-beginners) ( 🧠 )
162+
- [vinta/awesome-python](https://github.com/vinta/awesome-python)
163+
- [lukasmasuch/best-of-python](https://github.com/lukasmasuch/best-of-python)
164+
- [freeCodeCamp/freeCodeCamp](https://github.com/freeCodeCamp/freeCodeCamp) ( πŸ‘” )
165165

166166
### Interaktive Übungen
167167

168168
Üben Sie weiter, damit Ihre Programmierkenntnisse nicht einrosten.
169169

170-
- [codechef.com](https://www.codechef.com/) ( πŸ‘” )
171-
- [codeforces.com](https://codeforces.com/)
172-
- [codementor.io](https://www.codementor.io) ( 🧠 )
173-
- [coderbyte.com](https://www.coderbyte.com/) ( πŸ‘” )
174-
- [codewars.com](https://www.codewars.com/)
175-
- [exercism.io](https://exercism.io/)
176-
- [geeksforgeeks.org](https://www.geeksforgeeks.org/) ( πŸ‘” )
177-
- [hackerearth.com](https://www.hackerearth.com/)
178-
- [hackerrank.com](https://www.hackerrank.com/) ( πŸ‘” )
179-
- [kaggle.com](https://www.kaggle.com/) ( 🧠 )
180-
- [labex.io](https://labex.io/exercises/python)( πŸ§ͺ )
170+
#### Interviewvorbereitung
171+
181172
- [leetcode.com](https://leetcode.com/) ( πŸ‘” )
173+
- [hackerrank.com](https://www.hackerrank.com/) ( πŸ‘” )
174+
- [geeksforgeeks.org](https://www.geeksforgeeks.org/) ( πŸ‘” )
175+
176+
#### Praktisches Lernen
177+
178+
- [exercism.io](https://exercism.io/)
179+
- [codewars.com](https://www.codewars.com/)
180+
- [labex.io](https://labex.io/exercises/python) ( πŸ§ͺ )
181+
- [teclado.com](https://teclado.com/30-days-of-python/#prerequisites) ( πŸ§ͺ )
182182
- [projecteuler.net](https://projecteuler.net/)
183-
- [replit.com](https://replit.com/)
184-
- [w3schools.com](https://www.w3schools.com/python/) ( πŸ§ͺ )
185-
- [teclado.com](https://teclado.com/30-days-of-python/#prerequisites) ( πŸ‘” )
186-
- [fullstakpython.org](https://fullstackpython.org/) ( πŸ§ͺ )
183+
- [kaggle.com](https://www.kaggle.com/) ( 🧠 )

0 commit comments

Comments
Β (0)