title: I am trying to write the python code that can check repeat word in sentance
body: <p>for this code i try to find if the word is repeat it will say word is "not unique" and if word does not repeat it will say word is "unique". I run the program but it showing error after i enter the sentence. </p>
  
  <pre><code>def isUnique():
  
      words = sentence.split()
      unique = {}
      for i in words:
      if word not in unique:
      count[i] = true
      else:
      unique[i] = false
  
  
  def main():
  
      user_input = input("Enter word sperated by space: ")
      uniques = isUnique(user_input)
      print(uniques)
  
  main()
  </code></pre>