title: Invalid Syntax error in Spyder?
body: <pre><code>runfile('C:/Users/kesha/untitled0.py', wdir='C:/Users/kesha')
  File "C:/Users/kesha/untitled0.py", line 50
  labely = 'Theta3'
       ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>I don't understand what's wrong with assigning 'Theta3' to labely variable.  There are no errors when assign 'Theta2' or 'Theta1' to labely variable.  I'm pretty sure it's not a name dependency either because I switched the name with no success. Thank you for your time and attention.</p>
  
  <p>Here is the code snippet:</p>
  
  <pre><code>titleP = 'Amplitude of Pendulum vs. Time'
  labelx = 'Time in Seconds'
  
  labely = 'Theta1'
  t,th1,E1 = calc(np.pi/12)
  plot2d(labelx, labely, titleP, -1, 0, 1, t)
  
  labely = 'Theta2'
  t,th2,E2 = calc(np.pi/6)
  plot2d(plot2d(labelx, labely, titleP, -1, 0, 1, t)
  
  labely = 'Theta3'
  t,th3,E3 = calc(np.pi/3)
  plot2d(labelx, labely, titleP, -1, 0, 1, t)
  </code></pre>