title: My Nested Selection doesnt properly work. Python
body: <p>I'm making a program and I have defined the "check password" section but for some reason I try the "check password" option and the nested selection only works to a certain point. This is the section of the code that doesn't work properly:</p>
  
  <pre><code>Uppercase = set("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
    Lowercase = set("abcdefghijklmnopqrstuvwxyz")
    Digits = set("0123456789")
    AllowedSymbols = set("!$%^&amp;*()-_=+")
  
    if any ((c in Uppercase)for c in UserPassword):
      print ("You have used at least one uppercase letter. 5 points have been awarded.")
      TotalScore = TotalScore + 5
      if any ((c in Lowercase)for c in UserPassword):
        print ("You have used at least one lowercase letter. 5 points have been awarded.")
        TotalScore = TotalScore + 5
        if any ((c in Digits)for c in UserPassword):
          print ("You hve used at least one digit. 5 points have been awarded.")
          TotalScore = TotalScore + 5
          if any ((c in AllowedSymbols)for c in UserPassword):
            print ("You have used at least one of the allowed symbols. 5 points have been awarded.")
            TotalScore = TotalScore + 5
            if any ((c in Uppercase)for c in UserPassword) and any ((c in Lowercase)for c in UserPassword) and ((c in Digits)for c in UserPassword) and ((c in AllowedSymbols)for c in UserPassword): 
              print ("You have used at least one of all the allowed characters. 10 point have been awarded")
              TotalScore = TotalScore + 10
    else:
      print (" You haven't used any of the allowed characters so no points have been awarded.")
  
    print ("The score for your password so far is",TotalScore)
  </code></pre>
  
  <p>Can someone please show me where I have gone wrong?
  Thank you.</p>