python-tutorial
python-tutorial copied to clipboard
Material for a Jupyter-based Python tutorial
**Describe the bug** The test tries to compare two randomized lists, and passes if they are the same. Even with the proposed solution, the test does not pass 2/2 **To...
Hopefully closes #240. Add proper error handling, logging, command-line options, and improved documentation. Clean anchor generation, add version, and enhance CLI help text.
The import statement for tutorial.threads in the first code-cell in **Higher level interface: concurrent.futures** is yielding a ModuleNotFoundError The statement: `from tutorial.threads import parallel_work, sequential_work` **To Reproduce** Run all cells...
**Describe the bugs** A) Final string should be reverted, with e.g. result = result[::-1], to yield the correct result. https://github.com/empa-scientific-it/python-tutorial/blob/cbd5572b1aff6875f5f75689217125cfcb28540a/tutorial/tests/test_02_control_flow.py#L412-L419 ``` decimal //= to_base #TODO: result = result[::-1] to revert...
If Jupyter Lab is set to use a password instead of the (default) token-based authentication, the package `ipynbname` doesn't work as expected and the notebook's name cannot be found. Here's...
```python class Eye: def __init__(self, color): self.color = color class Mother(Eye): def __init__(self, color): super().__init__(color) class Father(Eye): def __init__(self, color): super().__init__(color) class Child(Eye): def __init__(self, mom: Mother, dad: Father): result...
Add a paragraph about https://www.pythontutorial.net/python-oop/python-__new__/