Re: [Tutor] Table like array in Python

2008-03-26 Thread Roel Schroeven
Gloom Demon schreef: > Hello :-) > > I am reading Ivan van Leiningem "Learn Python in 24 hours" and I am > having problems understanding the way arrays work in Python. I used to > know Pascal and arrays there were tablelike. > > Example (cost of something in different countries by different yea

Re: [Tutor] Table like array in Python

2008-03-26 Thread Kent Johnson
Gloom Demon wrote: > Example (cost of something in different countries by different years) > > Record1 US 2006 22.10 > Record2 US 2007 23.45 > Record3 UK 2007 22.90 > .. > RecordN > > So I could read the record, see if the name of the country

Re: [Tutor] Table like array in Python

2008-03-26 Thread Michael Connors
On 26/03/2008, Gloom Demon <[EMAIL PROTECTED]> wrote: > > Hello :-) > > Example (cost of something in different countries by different years) > > Record1 US 2006 22.10 > Record2 US 2007 23.45 > Record3 UK 2007 22.90 > .. >

[Tutor] Table like array in Python

2008-03-26 Thread Gloom Demon
Hello :-) I am reading Ivan van Leiningem "Learn Python in 24 hours" and I am having problems understanding the way arrays work in Python. I used to know Pascal and arrays there were tablelike. Example (cost of something in different countries by different years) Record1 US 2006 22.10 Record2 US