'checking if all elements in a list are equal to a certain value [duplicate]

I'd like to check if all elements within my list are equal to a certain value (that being, '1'). For example:

check_a = False
check_b = False
check_c = False

a = [0, 0, 0, 0, 0]
b = [0, 1, 1, 0, 0]
c = [1, 1, 1, 1, 1]

if all in a == 1:
    check_a = True

elif all in b == 1:
    check_b = True

elif all in c == 1:
    check_c = True
  


Solution 1:[1]

Flyway can be execute not only at startup, but also invoking mvn flyway:migrate

You can try to execute mvn programmatically as described here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Luca Riccitelli