Xxx. Lektion: Diverse Themen: Difference between revisions

From Attraktor Wiki
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
== 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
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:


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