Friday, January 31, 2014

3.1.2 Arrays

Arrays also known as table arrays are lists of information that can be accessed by index numbers.
 Lists always begin with 0.,
For example: 0 1 2 Jim Jimmy Jamie
(0 = Jim 1 = Jimmy and 2 = Jamie
 The equivilent of arya in python are called lists. Lists in python can be different, for example there are 2 dimentional arrays( Covered in the next post) and 3 dimentional arrays. 3 Dimentional arrays in python are basicly a list inside a list inside a list, for example : day [Monday, Tuesday, Wednesday, Thursday ,Friday] week [One,Two,Three,Four,Five] year [2000,2001,2002,2003,2004] Year info = ("Thursday" "Four" "2003")

No comments:

Post a Comment