Back to Browse

Determine whether any element in a Python list meet a test condition

62 views
Nov 27, 2021
3:27

I have a list of students’ exams score. I want to write a function that checks whether any of the exam scores is below the minimum passing grade. Python allows you to do a quick check on your collection of data. Using a single python function and list comprehension, for example, you can run a quick test to see if any of the items in your list meet your test condition. Watch and learn how to do it

Download

1 formats

Video Formats

360pmp44.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Determine whether any element in a Python list meet a test condition | NatokHD