This is my first post, so please be patient with me.. So i've been coding in python for about a month, and i'm not exactly brilliant, so i'm stumped. The system is a basic login (A-Level work) for a "merit system", however the list cannot get past the first user in the class?
Code:
-
def findStudent(username):
-
for i in range(len(students)):
-
if students[i][0] == username:
-
return i
-
return -1
Sorry if i've been vague, feel free to ask any further questions
thanks in advance,
Ed