title: Python 3.6 - pickle
body: <pre><code>import pickle
  
  randomlist = []
  value = input("Add: ")
  randomlist.append(value)
  print(randomlist)
  
  with open("randomlist_presistence.pkl", "wb") as pickle_out:
      pickle.dump(randomlist, pickle_out)
  </code></pre>
  
  <p>It creates a file called: "randomlost_presistence.pkl" and it has some symbols. But afterwards I don't know what should I do to unpickle the data. I don't know where to write this:</p>
  
  <pre><code>with open("randomlist_presistence.pkl", "rb") as pickle_in:
     randomlist = pickle.load(pickle_in)
  </code></pre>
  
  <p>My goal is to write something into the list and save it. Python 3.x. Thank you.</p>