How can ı fix this code can you help me
def printGrades(self): print(self.name,end=" ") for i in range(len(self.courses)): #if last