title: How to check strings for certain requirements
body: <p>How do I check a string to see if it has uppercase and lowercase, and symbols? I haven't been able to find a answer I understand on the web yet and any help will be really appreciated.</p>
  
  <p>Code:</p>
  
  <pre><code>def final_output():
      print("worthless")
  
  def re_main():
      main()
  
  def password_checker(password):
      strength = 0
      letters = isalpha()
      numbers = isdigit()
  
      if letters and numbers == 'False':
          print("works")
  
  
  def main():
      password = (input("Please input password:"))
      passwordChecker = (input("Please re-enter your password:"))
  
      if password != passwordChecker:
          print("Passwords did not match, please try again.")
          re_main()
      else:
          password_checker(password)
  
  
  main()
  </code></pre>