A function’s signature is its promise to the people who call it: what it needs, what it allows, and how each value may be passed. Python lets you say a good deal in that promise. You can require that an option be named, forbid a parameter from being named, and add notes about the types you expect. This lesson puts those pieces together so that you can read any signature, and write a clear one.
More lessons in Complete Python Programming