python Programming Glossary: self.units
Python hw, trouble with class and methods [closed] http://stackoverflow.com/questions/13828661/python-hw-trouble-with-class-and-methods units 0 units 0 if GPA 0 GPA 0 self.name name self.GPA GPA self.units units def update newunits GPE thats all i can come up with .. . So you probably want to do something like this self.units newunits Should modify the GPA to incorporate the grade earned.. the unit counts and both sets of GPAs. Just as you update self.units you have to update self.GPA here. Unfortunately I have no idea..
|