title: How to error check Python Statistics mode function?
body: <p>There is a question similar to this existing but does not quite fit my situation.  I'm using Python 3.4 and want to use the mode function of the statistics module, however when there is not a mode python terminates program and gives me an error.  Is there an if statement I could write to check if there are duplicates in my list, and if not display a print message before the mode function begins, and prevent the mode function from running?<br>
  So far I have:</p>
  
  <pre><code>    UserNumbers=input("Enter number sequence separated by spaces: ")
      nums = [int(i) for i in UserNumbers.split()]
      Average = mean(nums)
      print ("The mean is ", Average)
      Middle = median(nums)
      print ("The median is ", Middle)
      Most = mode(nums)
      print ("The mode is ", Most)
  </code></pre>
  
  <p>I am a beginner so it's a bit hard to convey my problem properly, please excuse incorrect terminology.</p>