You are missing a comma. It should be sp.integrate(l, (z, 1, 0))
.
Anyway, your integral doesn't make sense because you assigned z
to a number. z
needs to be a Symbol if you want to use it as a variable of integration.
Also, did you really intend to compute the "backwards" integral from 1 to 0?