Re: [Tutor] New to Programming

2010-06-14 Thread cristeto1981
Dave Angel wrote: > > Kaushal Shriyan wrote: >> Hi, >> >> I am absolutely new to programming language. Dont have any programming >> experience. Can some one guide me please. is python a good start for >> novice. >> >> Thanks, >> >> Kaushal >> >> > Like nearly all questions, the answer is "it

Re: [Tutor] large file

2010-06-14 Thread cristeto1981
Alan Gauld wrote: > > > "Hs Hs" wrote > >> I have a very large file 15Gb. > >> Every two lines are part of one readgroup. >> I want to add two variables to every line. > >> HWUSI-EAS1211_0001:1:1:977:20764#0 RG:Z:2301 >> HWUSI-EAS1211_0001:1:1:977:20764#0RG:Z:2302 >> ... >> Since I c

Re: [Tutor] Better construct?

2010-06-14 Thread Advertising Department
Many thanks to all, repeat WHILE is exactly what I needed. I got BASIC stuck in my head. GOTO line# YUCK! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Better construct?

2010-06-14 Thread Alan Gauld
"Advertising Department" wrote repeat WHILE is exactly what I needed. I got BASIC stuck in my head. GOTO line# YUCK! BASIC has a WHILE/WEND construct too :-) Even GW Basic supported that. Alan G. ___ Tutor maillist - Tutor@python.org To unsub

[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

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

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] large file

2010-06-14 Thread Eduardo Vieira
> Thanks for this thread. This is very helful. I'm learning a lot from you > guys. :) > > - > [url=http://crosspromotion.wizard4u.com/]joint ventures[/url] > > -- > View this message in context: > http://old.nabble.com/-Tutor--large-file-tp28874185p28878191.html > Sent from the Python - tutor