Xxx. Lektion: Diverse Themen: Unterschied zwischen den Versionen

Aus Attraktor Wiki

Wechseln zu: Navigation, Suche
 
(7 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

Aktuelle Version vom 28. Januar 2024, 18:24 Uhr

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



Diese Seite wurde zuletzt am 28. Januar 2024 um 18:24 Uhr geändert. Diese Seite wurde bisher 2.211 mal abgerufen.