O'Reilly logo

Sams Teach Yourself Python Programming for Raspberry Pi in 24 Hours, Second Edition by Christine Bresnahan, Richard Blum

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required