I keep getting 'invalid character in identifier' when opening a file in python
<p>So I'm trying to open a file with the following code: </p>

<pre><code>open(âdatapickleâ, ârbâ) as f: 
  names, F, approximate = pickle.load(f)
</code></pre>

<p>However, I constantly get: 
<a href="http://i.stack.imgur.com/qPhR9.png" rel="nofollow"><img src="http://i.stack.imgur.com/qPhR9.png" alt="enter image description here"></a></p>

<p>what can I do to fix this? 
Please help :( </p>

<p>Two problems:</p>

<ol>
<li><p>Those tick characters <code>â</code> are not valid. Use single <code>'</code> or double <code>"</code> quotes.</p></li>
<li><p>The correct syntax is <code>with open(...) as f</code>. You're missing the <code>with</code> statement.</p></li>
</ol>

<p>The editor you're using should be highlighting your text in different colors to help you with this. If you don't have an editor that can do this, try downloading <a href="https://www.sublimetext.com/" rel="nofollow">Sublime Text</a> or <a href="https://atom.io/" rel="nofollow">Atom</a>.</p>

python pickle