title: How can I find duplicate words in a text file?
body: <pre><code>file_str = input("Enter poem: ")
  my_file = open(file_str, "r")
  words = file_str.split(',' or ';')
  </code></pre>
  
  <p>I have a file on my computer that contains a really long poem, and I want to see if there are any words that are duplicated per line (hence it being split by punctuation).</p>
  
  <p>I have that much, and I don't want to use a module or Counter, I would prefer to use loops. Any ideas?</p>