By Andy Brown
Download files and exercises for this tutorial from https://www.wiseowl.co.uk/python/videos/python-programming/slicing/
The previous tutorial in this series looked at looping over all of the elements of a sequence, but there are a number of tricks that you can use to pick out just a subset of the elements in a list, tuple, range of numbers or string, using a technique called slicing, as explained in this tutorial.
Chapters
00:00 Topic list
01:17 Basic syntax
03:59 Basic slicing
09:08 Offsetting and default values
13:54 Editing lists using slicing
17:46 Setting a step value
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!