Have you ever ever come throughout the ahead slash (/
) and asterisk (*
) symbols within the documentation in your favourite libraries? These signify particular parameters, which inform you what sorts of arguments you need to use to name a given operate. In Python, these parameters will help you make sure that your features are used appropriately.
Perhaps you’re a daily at Actual Python’s weekly Office Hours meetup, or maybe you’re interested in what occurs there. You’ll get a glimpse on this Code Dialog, which solutions one participant’s query of the right way to interpret and apply particular operate parameters in writing and calling features.
On this Code Dialog video course, you’ll discover ways to:
- Set default values for arguments
- Write positional-only, keyword-only, and mixed features
- Consult with the ahead slash (
/
) and asterisk (*
) precisely - Use particular operate parameters in real-world code