Hour 8. Using Lists and Tuples

What You’ll Learn in This Hour:

Image Working with tuples and lists

Image Using multidimensional lists

Image Building lists with comprehensions

When you work with variables, sometimes it comes in handy to group data values together so you can iterate through them later in your script. You can’t easily do that with separate variables, but Python provides a solution for you.

Most programming languages use array variables to hold multiple ...

Get Sams Teach Yourself Python Programming for Raspberry Pi in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.