title: How to import a list from another python file
body: <p>I just started programming in Python so I would love a detailed explanation.
  Let's say I have a list of words at file number 1:</p>
  
  <pre><code>list=["leaf","cream","pickles","vinegar","gouda","almond","fire","orbit","spider","symbol"]
  </code></pre>
  
  <p>In a cache called "Random Words".</p>
  
  <p>Now I'm coding a different file (file 2) called "The Selected Word".
   I want to import a different word from file 1 each time I run file 2.
  What command should I write?
  I tried this:</p>
  
  <pre><code>word = random.choice.open("random words","w")
  print(word)
  </code></pre>
  
  <p>And it didn't work ...</p>