|
|
(4 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://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://www.kdnuggets.com/how-to-write-efficient-python-code-a-tutorial-for-beginners |
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