16. Lektion: Funktionen.extend(): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 5: | Line 5: | ||
return a, b</pre> | return a, b</pre> | ||
<pre>x, y = test1(23, 45)</pre> | <pre>x, y = test1(23, 45)</pre> | ||
* | * Man kann Positions- oder Schlüsselwortargumente an eine Funktion übergeben. | ||
** https://realpython.com/python-asterisk-and-slash-special-parameters/ | ** https://realpython.com/python-asterisk-and-slash-special-parameters/ | ||
** https://medium.com/@mr.stucknet/a-roadmap-to-python-parameter-definitions-best-practices-and-beyond-6faa2f66fc19 | ** https://medium.com/@mr.stucknet/a-roadmap-to-python-parameter-definitions-best-practices-and-beyond-6faa2f66fc19 | ||
| Line 13: | Line 13: | ||
** https://www.phyton-lernen.de/zufallszahlen-random.htm | ** https://www.phyton-lernen.de/zufallszahlen-random.htm | ||
<br> | <br> | ||
== Navigation== | == Navigation== | ||
[[Micropython_Kurs_2023_-_Teil_1|Zurück zu Micropython Kurs 2023 - Teil 1]]<br> | [[Micropython_Kurs_2023_-_Teil_1|Zurück zu Micropython Kurs 2023 - Teil 1]]<br> | ||
Revision as of 16:47, 1 October 2023
Funktionen
- Benannte Parameter
- Mehrere Ergebnisse zurückgeben
def test1(a, b):
return a, b
x, y = test1(23, 45)
- Man kann Positions- oder Schlüsselwortargumente an eine Funktion übergeben.
- Zufallszahlen
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