Series 6: Defining and Using Functions
This series covers the fundamentals of creating and using functions in Python.
Articles
- 41. Introduction to Functions: The DRY principle and code reusability
- 42. Defining Functions: def keyword, parameters, and arguments
- 43. Function Return Values: The return statement
- 44. Default Arguments and Keyword Arguments
- 45. *args and **kwargs: Accepting a variable number of arguments
- 46. Scope: Local, Enclosing, Global, and Built-in (LEGB rule)
- 47. Docstrings and Type Hinting
- 48. Lambda Functions