title: Riemann sum in python
body: <p>I need help coding a program that will use the Riemann definition (left AND right rules) to calculate the integral of <code>f(x)=sin(x)</code> from <code>a=0</code> to <code>b=2*pi</code>. I can do this by hand for days, but I have zero idea how to code it with python. </p>