Xxx. Lektion: Diverse Themen: Difference between revisions
Jump to navigation
Jump to search
Created page with "* Spiele ** https://realpython.com/python-dice-roll/ * Dictionaries: ** https://panjutorials.de/tutorials/der-ultimative-python-3-kurs-fuer-anfaenger/lektionen/ordereddict/ *..." |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Spiele== | |||
** https://realpython.com/python-dice-roll/ | ** https://realpython.com/python-dice-roll/ | ||
== 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:== | ||
** 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 | ||
| Line 74: | Line 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> | |||
Latest revision as of 19:24, 28 January 2024
Spiele
Dictionaries:
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.
>>> a := 5*10 Traceback (most recent call last): File "<stdin>", line 1 SyntaxError: invalid syntax >>> (a := 5*10) 50 >>>
Verschachtelte Fubktionen
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://medium.com/@sarperismetmakas/python-bytes-92ba69ddafba
- https://tonylixu.medium.com/python-tips-how-to-write-better-functions-part-one-27fe4578e26e
- https://python.plainenglish.io/10-cool-less-known-dictionary-methods-in-python-9eef4081c263
- https://pythonflood.com/python-bitwise-operators-building-blocks-of-advanced-programming-a953c1715883
- https://medium.com/@Scofield_Idehen/advanced-python-tips-for-development-47e061ecee70
- https://python.plainenglish.io/write-better-code-with-python-comprehension-bad8376e44ee
- https://medium.com/techtofreedom/3-uses-of-walrus-operators-in-python-207ff630fc0e
- https://levelup.gitconnected.com/lambda-functions-in-python-a124cebc2e99
- https://pythonflood.com/boost-your-coding-abilities-with-python-exec-function-bec400c53e9c
- https://medium.com/geekculture/understanding-the-ternary-operator-in-python-717bd789d373
- https://medium.com/analytics-vidhya/python-how-to-write-less-code-to-achieve-the-same-results-3b48fdb4ded4
- https://levelup.gitconnected.com/6-4-built-in-python-functions-you-cannot-miss-out-on-9dec1b566e1f
- https://medium.com/techtofreedom/19-sweet-python-syntax-sugar-for-improving-your-coding-experience-37c4118fc6b1
- https://medium.com/codex/11-python-coding-habits-that-make-you-a-bad-programmer-5e3306077686
- https://blog.devgenius.io/50-python-features-tips-tricks-that-you-dont-know-8a2cb55cd493
- https://medium.com/@shivam2003/20-python-concepts-i-wish-i-knew-way-earlier-40ed5674cd52
- String Formatierung
- List comprehensions
- Dokumentation
- pass
- Menue erstellen
- Compiler
- Sortieren
- Wertgleichheit == und Identität is
- 16. Lektion: Funktionen.extend()
- Generatoren
- Regulare Expressions
- Listen
- Slicing
- Konstanten
- copy deep und flach
- https://www.heise.de/ratgeber/Phyton-Welche-Auflistungstypen-es-gibt-und-wie-sie-verwendet-werden-9216638.html?seite=all
- https://levelup.gitconnected.com/30-phyton-concepts-i-wish-i-knew-way-earlier-3add72af6433
- Bool
- bool(mylist) - not
Sortieren
Mitgliedschaft
- in
For/Else
Bytearray / Bytestring
Werden nur zur Vorbereitung auf eine serielle Datenübertragung verwendet.
Datenstrukturen werden in einzelne Bytes zerlegt.
python-bytes-to-string-how-to-convert-a-bytestring
python-bytes
5. Abend
Di. 13.2.2024
Kritik
$ jupyter notebook