Re: [Tutor] Structuring a class

2010-06-15 Thread Hilton Fernandes
inded, a relational database is the best bet here. however, a direct implementation in Python may need less previous knowledge. On Tue, Jun 15, 2010 at 4:44 AM, Alan Gauld wrote: > "Lang Hurst" wrote > >> I'm trying to figure out how to deal with data which will look something >> like: >> >>  

Re: [Tutor] Structuring a class

2010-06-15 Thread Alan Gauld
"Lang Hurst" wrote I'm trying to figure out how to deal with data which will look something like: Student:Bob Hurley Credits: Algebra C (20P) Chapter 1 Chapter 2 Consumer Math (24G) Module 2 So, I just figured that I would have a couple o

Re: [Tutor] Structuring a class

2010-06-14 Thread Lang Hurst
bob gailer wrote: Often a case like this is better handled using a relational database. Python happens to come with the sqlite3 module which makes database work quite easy. You should define a class for Credit, which will hold the credit attributes, just like you did for Student. Th

Re: [Tutor] Structuring a class

2010-06-14 Thread bob gailer
On 6/14/2010 8:08 PM, Lang Hurst wrote: I'm trying to figure out how to deal with data which will look something like: Student:Bob Hurley ID: 123456 Period:4 Grad_class: 2012 Credits: Algebra C (20P) Chapter 1 Date: September 14, 2010

[Tutor] Structuring a class

2010-06-14 Thread Lang Hurst
I'm trying to figure out how to deal with data which will look something like: Student:Bob Hurley ID: 123456 Period:4 Grad_class: 2012 Credits: Algebra C (20P) Chapter 1 Date: September 14, 2010 Grade: 87 Credits