First time here? Check out the FAQ!
answered 2022-01-30 20:24:49 +0100
Python's all() and any() functions are your friends here:
all()
any()
if all(ListBasis[i][w].polynomial().ord() != ListBasis[i-1][y].polynomial.ord() for w in range(d[i])): d.add(ListBasis[i][w])