|
|
(8 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
− | * Spiele
| + | == Spiele== |
| ** https://realpython.com/python-dice-roll/ | | ** https://realpython.com/python-dice-roll/ |
| | | |
− | * Dictionaries:
| + | == Dictionaries:== |
| ** https://panjutorials.de/tutorials/der-ultimative-python-3-kurs-fuer-anfaenger/lektionen/ordereddict/ | | ** https://panjutorials.de/tutorials/der-ultimative-python-3-kurs-fuer-anfaenger/lektionen/ordereddict/ |
| ** https://geekflare.com/de/python-dictionary-sorting/ | | ** https://geekflare.com/de/python-dictionary-sorting/ |
| | | |
| + | == Walrus Operator== |
| + | Der Walrus-Operator ist eine Funktion ohne Namen. Sie wird dort angewandt wo eine Funktion nur einmal gebraucht wird oder als Parameter einer Funktion. |
| + | <pre> |
| + | >>> a := 5*10 |
| + | Traceback (most recent call last): |
| + | File "<stdin>", line 1 |
| + | SyntaxError: invalid syntax |
| + | >>> (a := 5*10) |
| + | 50 |
| + | >>> |
| + | </pre> |
| | | |
| + | == Verschachtelte Fubktionen== |
| + | * https://www.delftstack.com/de/howto/python/nested-functions-python/ |
| | | |
− | * Diverses:
| + | == Diverses:== |
| + | ** https://medium.com/@sivakumar-mahalingam/25-python-one-liners-that-senior-developers-use-c128f4497349 |
| + | **https://www.kdnuggets.com/how-to-write-efficient-python-code-a-tutorial-for-beginners |
| + | ** https://muhammadraza.me/2023/python-oneliners |
| ** https://python.plainenglish.io/top-10-python-lambda-function-examples-for-beginners-fd5db038ba20 | | ** https://python.plainenglish.io/top-10-python-lambda-function-examples-for-beginners-fd5db038ba20 |
| ** https://medium.com/@sarperismetmakas/python-bytes-92ba69ddafba | | ** https://medium.com/@sarperismetmakas/python-bytes-92ba69ddafba |
Zeile 74: |
Zeile 90: |
| ===== For/Else===== | | ===== For/Else===== |
| * https://book.pythontips.com/en/latest/for_-_else.html | | * https://book.pythontips.com/en/latest/for_-_else.html |
| + | |
| + | === Bytearray / Bytestring=== |
| + | Werden nur zur Vorbereitung auf eine serielle Datenübertragung verwendet.<br> |
| + | Datenstrukturen werden in einzelne Bytes zerlegt.<br> |
| + | [https://www.freecodecamp.org/news/python-bytes-to-string-how-to-convert-a-bytestring/ python-bytes-to-string-how-to-convert-a-bytestring ]<br> |
| + | [https://www.w3resource.com/python/python-bytes.php python-bytes]<br> |
| + | |
| + | ==== 5. Abend==== |
| + | Di. 13.2.2024 |
| + | |
| + | ===== Kritik===== |
| + | |
| + | <br> |
| + | $ jupyter notebook<br> |
| + | <br> |
| + | <br> |
| + | |
| + | <br> |
Der Walrus-Operator ist eine Funktion ohne Namen. Sie wird dort angewandt wo eine Funktion nur einmal gebraucht wird oder als Parameter einer Funktion.
Di. 13.2.2024