Download presentation
Presentation is loading. Please wait.
Published byJewel Carr Modified over 9 years ago
1
Python Arrays
2
An array is a variable that stores a collection of things, like a list. For example a list of peoples names. We can access the different values stored in an array using an index. Index0123 ValueAlexJamesPatrickAndy If this array was called ‘names’ we could access this value using: names[1] How would we access this value?
3
Example Program How could we make this program more efficient?
4
Example Program For loops and Arrays go well together, each time the For loop cycles round it can access a different position in the array.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.