Syntax error in print statement
<p>This is the end of my script. I'm getting the error :  </p>

<pre><code>print "[%s]\t %s " % (item.sharing['access'], item.title)
                     ^
SyntaxError: invalid syntax
</code></pre>

<p>Code:</p>

<pre><code>#List titles and sharing status for items in users'home folder
 for item in currentUser.items:
     print "[%s]\t %s " % (item.sharing['access'], item.title)
</code></pre>

<p><strong>Questions</strong></p>

<p>How can I correct this syntax error?</p>

<p>Where can I access resources to avoid mistakes such as this?</p>

<p>Either you're using Python 3, in which <code>print</code> is a function and thus requires surrounding parentheses (i.e. you have to say <code>print(x)</code> instead of <code>print x</code>), or you have an earlier line of code that wasn't terminated properly.</p>

python