By Andy Brown
Download files and exercises for this tutorial from https://www.wiseowl.co.uk/python/videos/python-programming/list-comprehensions/
Processing a list usually involves applying a condition to exclude unwanted items and then transforming the result to get what you want. A list comprehension provides an elegant, concise way to combine these two things.
Chapters
00:00 Topic list
01:01 Three preliminary messages
02:12 Example - listing even number squares
06:13 Example - reversing certain words
09:20 Example - listing hyperlinks
12:25 Single line programming
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!