So I\'m trying to open a file with the following code:
open(‘datapickle’, ‘rb’) as f:
names, F, approximate = pickle.load(f)
However, I
Two problems:
Those tick characters ‘
are not valid. Use single '
or double "
quotes.
The correct syntax is with open(...) as f
. You're missing the with
statement.
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 Sublime Text or Atom.