Question: Use this code to select the statement below that best describes why there is an error in the str method. class Student: def ( self

Use this code to select the statement below that best describes why there is an error in the
str
method.
class Student:
def (self, name, ID):
self._name = name
self._ID = ID
self._test_scores =[]
def method_1(self, score):
self._test_scores.append(score)
def method2(self):
if len(self._test_scores)> :
return sum(self._test_scores)/len(self._test_scores)
else:
return
#THIS METHOD HAS AN ERROR
def method_3(self):
score = nethod 2()
if score 90 :
return 'A'
elif score 80 :
return 'B'
elif score 70 :
return 'C'
elif score 60 :
return 'D'
return 'F'
def method_4(self):
return self._name
def method_5(self):
return self._ID
#THIS METHOD HAS AN ERROR
def (self):
print ('student with ID', ID,' has current scores:', self, test scores)
 Use this code to select the statement below that best describes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!