In python SyntaxError: EOL while scanning string literal
<p>I'm using python 3.5.1. When I was trying this</p>

<pre><code>print(r'\t\\\')
</code></pre>

<p>I got the error: SyntaxError: EOL while scanning string literal.
But this one worked well</p>

<pre><code>print(r'\t\\')
</code></pre>

<p>Can anyone please explain this?</p>