title: Python, unexpected EOF while parsing error
body: <p>I am a complete beginner in Python, having used R quite a lot before.</p>
  <p>I am trying to write a multiline string which is very straightforward in R but I receive an error that stumps me, I have googled around everywhere but the suggested solutions have not worked.</p>
  <p>When I try to use parentheses as I have seen suggested:</p>
  <pre><code>multiline = (&quot;Hello,&quot;
              &quot; my name is&quot;
              &quot; James&quot;)
  </code></pre>
  <p>I receive:</p>
  <pre><code>multiline = (&quot;Hello,&quot;
    File &quot;&lt;ipython-input-56-f67f7efad636&gt;&quot;, line 1
      multiline = (&quot;Hello,&quot;
                           ^
  SyntaxError: unexpected EOF while parsing
  </code></pre>
  <p>Similarly I tried triple quotes, also suggested:</p>
  <pre><code>multiline = &quot;&quot;&quot;Hello,
              my name is
              James&quot;&quot;&quot;
  </code></pre>
  <p>I receive:</p>
  <pre><code>multiline = &quot;&quot;&quot;Hello,
    File &quot;&lt;ipython-input-58-0879a928a2ee&gt;&quot;, line 1
      multiline = &quot;&quot;&quot;Hello,
                           ^
  SyntaxError: EOF while scanning triple-quoted string literal
  </code></pre>
  <p>I am sure I will be missing something blindingly obvious to more experienced Python users but any help would be greatly appreciated.</p>
  <p>Thanks very much</p>