16. Lektion: Funktionen.extend(): Difference between revisions

From Attraktor Wiki
Jump to navigation Jump to search
Line 4: Line 4:
<pre>
<pre>
>>> def test1(a, b):
>>> def test1(a, b):
    return a, b
        return a, b


>>> x, y = test1(3.14, 42)
>>> x, y = test1(3.14, 42)

Revision as of 16:52, 1 October 2023

Funktionen
  • Benannte Parameter
  • Mehrere Ergebnisse zurückgeben
>>> def test1(a, b):
        return a, b

>>> x, y = test1(3.14, 42)
>>> x
3.14
>>> y
42
>>> 


Navigation

Zurück zu Micropython Kurs 2023 - Teil 1
Zurück zur "Micropython Kurs 2023" Startseite
Zurück zur Programmieren Startseite
Zurück zur Wiki Startseite