16. Lektion: Funktionen.extend(): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 7: | Line 7: | ||
* you can pass positional or keyword arguments to your functions. | * you can pass positional or keyword arguments to your functions. | ||
** 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 | |||
Revision as of 09:28, 20 August 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.