By Andy Brown
Download files and exercises for this tutorial from https://www.wiseowl.co.uk/python/videos/python-programming/sequences-iterating-for-loops/
Iterating sequences has a good claim to be the most important topic in Python. This tutorial shows the four types of sequences (tuples, lists, ranges and strings), explains how to loop over them and gives four practical examples of their use.
Chapters
00:00 Topic list
01:30 Lists and tuples
04:31 Mutability and converting types
08:27 Ranges and strings
12:17 Iterating over sequences (theory)
15:18 Iterating over sequences (practice)
20:41 Example 1 - listing files
22:51 Example 2 - listing words
25:34 Example 3 - listing module names
28:10 Example 4 - listing hyperlinks
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!