title: my two python functions are overriding each other?
body: <pre><code>import re
  score = 0
  
  capital_letters = r'[A-Z]'
  a = re.compile(capital_letters)
  
  lowercase_letters = r'[a-z]'
  b = re.compile(lowercase_letters)
  
  def increase_score (aValue, aScore):
    aScore += aValue
    return aScore
  
  def upper_score(test_string, aScore):
    if re.match(a, test_string):
      aScore = increase_score(5, aScore)
      print (aScore)
      print("UPPERCASE")
    else:
      print("The password needs capital letters for a higher score")
  
  
  def lower_score(test_string, aScore):
      if re.match(b, test_string):
        aScore = increase_score(5, aScore)
    print (aScore)
    print("LOWERCASE")
  else:
    print("The password needs lowercase letters for a higher score")
  
  password = input("Enter a password to check")
  upper_score(password, score)
  lower_score(password, score)
  </code></pre>
  
  <p>If I input all upper case letters I get this output:</p>
  
  <pre><code>5
  UPPERCASE
  The password needs lowercase letters for a higher score
  </code></pre>
  
  <p>If I input all lower case letters I get this output:</p>
  
  <p>The password needs capital letters for a higher score
     5
     LOWERCASE</p>
  
  <p>These results I am happy with.</p>
  
  <p>THE PROBLEM IS when I combine uppercase and lowercase letters I get this result:</p>
  
  <pre><code>The password needs capital letters for a higher score
  5
  LOWERCASE
  </code></pre>
  
  <p>1) Even though there are both uppercase and lowercase letters the score is still 5 instead of 10.  </p>
  
  <p>2) The regex for uppercase letters stops working even though there are uppercase letters in the string.  </p>
  
  <p>Thank you!!! I hope I explained this well.</p>