For this program I am trying to get a new list that displays those students who got a grade of 95 or higher. No matter what I try I keep getting an empty list as a result. What am I doing wrong?
Here is my code:
students = ["Robin","Emily","Mary","Joe","Dean","Claire","Anne","Yingzhu","James",
"Monica","Tess","Anaya","Cheng","Tammy","Fatima"]
scores = [87, 72, 98, 93, 96, 65, 78, 83, 85, 97, 89, 65, 96, 82, 98]
def wise_guys(students):
wise_guys = []
for i in range(len(students)):
if score in scores >= 95:
wise_guys.append(students[i])
return wise_guys
wise_guys(students)
returnreally indented like this?