Answer to Question #105273 in Python for Uthra Ramachandran

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
1
Expert's answer
2020-03-13T16:58:09-0400
def count_values(L):
    count = 0
    for x in L:
        if x > 681:
            count += 1
    return count

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS