I’ll start by saying I have almost no experience with Python, and have been using the classes on this website to help me with my assignments. I apologize in advance if my questions are not clearly worded.
I need to create a method for a class that will count the number of credits a student has accumulated, and return that number as a float.
Below is the code for the class I have already created. The below code has passed the test in Mimir for my assignment:
def __init__(self, title, year, semester, credits, grade): self.title = title self.year = year self.semester = semester self.credits = credits self.grade = grade
def __init__(self, firstName, lastName, dob, hsName, hsCity, hsState, degree, address, transcript = , newcourse = ): self.firstName = firstName self.lastName = lastName self.dob = dob self.hsName = hsName self.hsCity = hsCity self.hsState = hsState self.degree = degree self.address = address self.transcript = transcript self.newcourse = newcourse