title: count the number of upper case and lower case characters in word
body: <pre><code>def Charater(): 
      UpperCount = 0 
      LowerCount = 0
      word = input('Enter a word: ')
      for letter in word:
          if letter == letter.upper 
              UpperCount = UpperCount + 1
              return UpperCount
          else:
              LowerCount = LowerCount + 1
              return LowerCount
  
  print(Charater())
  </code></pre>
  
  <p>Please don't judge me if this looks bad. But am a beginner I am trying to make the code count how many upper and lower case characters in a word which is inputted by the user. Each time I do this it returns 1. (Its probably my if statement). can someone please point out the problem and tell me how to resolve it.</p>