Verifique se todos os elementos da matriz podem ser divididos por Python

all(x%5 == 0 for x in l)
Jumping Boy