Getting error on if and elif
<p>Does anyone know why I keep getting an error with this section of my code?</p>

<pre><code> if db_orientation2 =="Z":
            a="/C=C\"
 elif db_orientation2=="E":
            a="\C=C\"
</code></pre>

<p>This is the error:</p>

<pre><code>File "&lt;ipython-input-7-25cda51c429e&gt;", line 11
    a="/C=C\"
         ^
SyntaxError: EOL while scanning string literal
</code></pre>

<p>The <code>elif</code> is highlighted as red as if the operation is not allowed...</p>

<p>String literals cannot end with a backslash. You'll have to double it:</p>

<pre><code>a="/C=C\\"
#       ^
</code></pre>

<p>The highlighting of your code also clearly shows the problem.</p>

python