Question #105273

Write a function named "count_values" that takes a list of integers as a parameter and returns the number of values in the list that are strictly greater than 681

Expert's answer

def count_values(L):
    count = 0
    for x in L:
        if x > 681:
            count += 1
    return count
LATEST TUTORIALS
APPROVED BY CLIENTS