You tried integrating from 0 to pi, but the integrand goes to infinity at 0 and pi, so Mathematica can't come up with an answer. So instead of integrating from 0 to pi, we try integrating from just a little bit more than zero to just a litlle bit less than pi, then we make the "little bit" smaller and smaller. If we make the "little bit" small enough, it will get as close to the answer you want as we like. So we tell Mathematica to integrate from \epsilon (a small number) to \pi-\epsilon. The Table line then evaluates your function with \epsilon having values of .1, .01, .001, .0001, .00001, .0000001, and .00000001. As you can see, it is getting very close to your answer. Does this make sense?