16. Lektion: Funktionen.extend(): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
** 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 | ||
* Zufallszahlen | |||
** random | |||
** https://www.phyton-lernen.de/zufallszahlen-random.htm | |||
<br> | |||
Revision as of 12:53, 2 September 2023
Funktionen
- Benannte Parameter
- Mehrere Ergebnisse zurückgeben
def test1(a, b):
return a, b
x, y = test1(23, 45)
- you can pass positional or keyword arguments to your functions.
- Zufallszahlen