title: how to access a list inside a function without returning it?
body: <p>So I accidentally forgot to include a return statement in my method and it just finished running after 10 hours, so i do not want to run it again. Is there a way i can access the <code>wordlist</code> inside this function?</p>
  <pre><code>def rm_foreign_chars(corpus):
      wordlist=[]
      for text in corpus:
          for sentence in sent_tokenize(text):
              wordlist.append(sentence)
              for word in word_tokenize(sentence):
                  for c in symbols:
  
                      if c in word:
                          if sentence in wordlist:
                              wordlist.remove(sentence)
                              break
  
  </code></pre>
  <p>Symbols is a list of symbols: <code>symbols = '฿‑‒–—―‖†‡•‰⁰⁷⁸₂₣℃™→↔∆∙≤⋅─■□▪►▼●◦◾★☎☺♣♦✓✔❖❗➡⠀ⱻ￼�ₒ'1</code></p>