title: Python - Modulus between two values
body: <p>I have a list of values of theta that is output by the <code>solve_ivp</code> function<br />
  I need to get all the values in-between <code>(-pi, pi)</code> and have been told to use <code>%</code> to do so<br />
  I understand that <code>list%pi</code> will put all values between <code>0</code> and <code>pi</code>, but how do I do this for between <code>-pi</code> and <code>pi</code>?</p>
  <p>Help greatly appreciated, thanks</p>