Dec-06-2019, 11:38 PM
Hello,
Hope you are well.
Using a dictionary "Undergrads" with is list of students, it has a key made of two values to make each student unique their name and overall rank in the class.
I want to focus on the top 10 students.
In this program a user inputs a name, I want to use an if statement to check if the student is in the top 10.
Is there a check if statement I can use to check to see if a student is in the top 10?
strStudent
marks = []
for i in range(1,11):
marks.append(Undergrads[strStudent, i][15])
Hope you are well.
Using a dictionary "Undergrads" with is list of students, it has a key made of two values to make each student unique their name and overall rank in the class.
I want to focus on the top 10 students.
In this program a user inputs a name, I want to use an if statement to check if the student is in the top 10.
Is there a check if statement I can use to check to see if a student is in the top 10?
strStudent
marks = []
for i in range(1,11):
marks.append(Undergrads[strStudent, i][15])