# Revision history [back]

No loop is necessary:

all(el <= c for el in L)


No explicit loop is necessary:necessary. If L is the list and c is the particular number, then you can do:

all(el <= c for el in L)


No explicit loop is necessary. necessary; you can use a generator expression in combination with all. If L is the list and c is the particular number, then you can do:

all(el <= c for el in L)