I would like to define a function that takes two arguments, with the possibility of a third.
I'm fairly certain this isn't possible, but considering the built-in range
function has:
range(stop) -> range object
range(start, stop[, step]) -> range object
Maybe it's possible? Or maybe I have the wrong idea because range
is actually an immutable sequence type?
For clarity's sake, the same function example(x,y)
could be run like example(x,y,z)