how to compare list and int in python 1

how to compare list and int in python

for list in listoflists:
    if {anyiteminlist} > 70:
        continue    #as in skip to next list

    {rest of code here} 

Here is what the above code is Doing:
1. It’s iterating through the list of lists.
2. It’s checking if any item in the list is greater than 70.
3. If it is, it skips to the next list.
4. If it isn’t, it runs the rest of the code.

Similar Posts