|
|
Zeile 7: |
Zeile 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 |
Version vom 20. August 2023, 08:28 Uhr
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.