As we have a one day's break from the Python functions series which returns with Day 10 tomorrow, let's look back the the topic from the last three days:
• positional-only arguments using / in function definitions • keyword-only arguments using * in function definitions
>>> numbers = [4, 6, 7, 2]
>>> numbers.sort(reverse=True)
>>> numbers
[7, 6, 4, 2]
All fine here. But try to use a positional argument instead:
>>> numbers.sort(True)
Traceback (most recent call last):
...
TypeError: sort() takes no positional arguments
/4