Python doesn't have function overloading.
What if we have a function that we'd like to use with different arguments depending on the situation?
For example, we'd like to make a greet
function that can be called with nothing or can be called with a single argument:
...
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Functions series.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.