[Tutor] Question in regards to my assignment
I have with my assignment. class Score: 'A subclass of the object.' def __init__(self, init): 'Sets the initial score to the object and sets the number of scores that have contributed to the total to 1.' self.x = 1 self.init = int(init) self.total =
Re: [Tutor] Question in regards to my assignment
On 18/01/14 22:52, Jackie Canales wrote: def processScores(filename): infile = open(filename, 'r') line = infile.readlines() infile.close() lineNum = 0 s = Score(0) for item in line2: lineNum += 1 What is line2? I assume you mean line? You could do