def count_failed_students(student_marks):
    failed_marks = 0
    for mark in student_marks:
        if mark <=40:
            failed_marks +=1
    return failed_marks

def above_threshold(student_marks, x):
    above_marks = []
    for mark in student_marks:
        if mark < x:
            continue
        above_marks.append(mark)
    return above_marks

def first_k_student_marks(student_marks, k):
    i = 0
    marks = []
    while i <= k:
        marks.append(student_marks[i])
    return marks

def perfect_score(student_info):
    for name, mark in student_info.items():
        if mark == 100:
            return name
    else:
        return "No hundreds"

@@ -140,10 +140,11 @@
 s +=
+ 
 1%0A
-
     
@@ -199,17 +199,25 @@
 _marks, 
-x
+threshold
 ):%0A    a
@@ -283,34 +283,26 @@
 ark 
-%3C x:%0A            continue%0A
+%3E= threshold:%0A    
     
@@ -481,16 +481,31 @@
 rks%5Bi%5D)%0A
+        i += 1%0A
     retu

fix infinite loop in exemplar.py