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
Let's check:
>>> "hello".replace("l", '-')
'he--o'
>>> "hello".replace(old="l", new='-')
Traceback (most recent call last):
...
TypeError: str.replace() takes no keyword arguments
/7