By Andy Brown

Download files and exercises for this tutorial from https://www.wiseowl.co.uk/python/videos/python-programming/functions/

Instead of writing your code in a single long file you can (and should) call separate functions to handle discrete tasks. In addition to all the modules supplied by third parties, this tutorial shows you how to create your own libraries of useful functions.

Chapters
00:00 Topic list
01:35 Designing functions and function syntax
04:45 Writing functions
07:44 Checking data types
10:31 Example: reading files
15:14 Example: turning dates into ages
18:43 Storing functions in modules
21:27 Full worked example of modular code
28:11 Doc Strings

Python playlist https://youtube.com/playlist?list=PLNIs-AWhQzckGrdnwITFlXGqiXTCAhWWi

If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can join this channel to get access to perks:
https://www.youtube.com/channel/UCbi5G5PjWBaQUFy7XU_O7yw/join
Or you can click this link https://www.wiseowl.co.uk/donate?t=1 to make a donation. Thanks for watching!

Visit https://www.wiseowl.co.uk for more online training resources in Microsoft Excel, Microsoft Power BI, DAX, VBA, Python, Visual C#, Microsoft SQL Server, SQL Server Reporting Services SSRS, SQL Server Integration Services SSIS, Microsoft Access and more!