title: Finding duplicate words in a string python
body: <p>I am trying to make my function locate duplicate words and if so the output should be True or False depending on wether there are duplicate words. For example:</p>
  
  <pre><code>doubleWord("cat") --&gt; False .      
  doubleWord("catcat") --&gt; True .   
  doubleWord("contour" * 2) --&gt; True
  </code></pre>
  
  <p>So far I have this:</p>
  
  <pre><code>def main():
  
      word = input("Enter a string: ")
  
      half = len(word) &gt;&gt; 1
      if word[:half] == word[half:]:
          print("True")
      else:
          print("False")
  
      return
      print(main())
  </code></pre>
  
  <p>if <strong>name</strong> == "<strong>main</strong>":
      main()</p>
  
  <p>Any help would be greatly appreciated. I thought maybe using slicing would make it easier but I have no idea how to implement that in my code. Thanks!</p>