title: "End of statement expected " string syntax error in python
body: <p><img src="https://i.stack.imgur.com/yJiaC.png" alt="enter image description here"></p>
  
  <p>I have the following variable assignment:</p>
  
  <pre><code>xpath_query="xpath='//a[@id="mylink"]'"
  </code></pre>
  
  <p>This is giving me an error in my pycharm editor and giving a syntax error when I run this code. What am I doing wrong?</p>
  
  <p>when I hold the cursor over the red squiggle it says:"end of statement expected "</p>