Have you ever ever come throughout the ahead slash (/
) and asterisk (*
) symbols within the documentation on your favourite libraries? These signify particular parameters, which inform you what sorts of arguments you should utilize to name a given operate. In Python, these parameters might help you make sure that your capabilities are used appropriately.
Possibly you’re an everyday at Actual Python’s weekly Workplace 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 learn how to interpret and apply particular operate parameters in writing and calling capabilities.
On this Code Dialog video course, you’ll discover ways to:
- Set default values for arguments
- Write positional-only, keyword-only, and mixed capabilities
- Consult with the ahead slash (
/
) and asterisk (*
) precisely - Use particular operate parameters in real-world code