title: How to get least occurring vowel in string?
body: <p>I have this code that is supposed to print out the least occurring vowel when a word is entered, but it doesn't print out a vowel and the least value. Here is my code: </p>
  
  <pre><code>#Program to count the least occurring vowels
  
  # take input from the user
  w = input("Enter a word or sentence: ")
  
  # string of vowels
  vowel = 'aeiouAEIOU'
  min_vowel = w[0]
  min = w.count(w[0])
  
  # make it suitable for caseless comparisions
  w = w.casefold()
  count = 0
  
  # count the vowels
  for char in w:
        if vowel in w:
          if w.count(vowel) &lt; min:
              min_vowel = w[0]
              min = w.count(w)
  print ("The least occuring vowel is",min_vowel,"with",min,"occurences.")
  </code></pre>
  
  <p>Please can anyone tell me where am going wrong?</p>