0% found this document useful (0 votes)
47 views4 pages

Python - Arrays

An introduction to arrays in Python.

Uploaded by

armbennett
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views4 pages

Python - Arrays

An introduction to arrays in Python.

Uploaded by

armbennett
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Python

Arrays
Arrays
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.
Index 0 1 2 3
Value Alex James Patrick Andy
If this array was
called names
we could access
this value using:
names[1]
How would we
access this
value?
Example Program
How could we make this program more efficient?
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.

You might also like