title: Trying to create a function to validate password without using re or main(), and will return true or false
body: <pre><code>def isValidPassword(pw):  
      SpecialSymbol = [&quot;@&quot;, &quot;#&quot;, &quot;$&quot;, &quot; &quot;, &quot;&amp;&quot;, &quot;%&quot;]
      val = True   
      
      if len(pw) &lt; 10:
          print(&quot;enter at least 10 characters&quot;)
          val = False
          
      if not any(char.isdigit(3) for char in pw):
          print(&quot;enter at least 3 digit numbers&quot;)
          val = False
          
      if not any(char.isupper() for char in pw):
          print(&quot;enter at least 1 uppercase letter&quot;)
          val = False
          
      if not any(char.islower() for char in pw):
          print(&quot;enter at least 1 lowercase letter&quot;)
          val = False
          
      if not any(char in SpecialSymbol for char in pw):
          print(&quot;enter at least 1 special character&quot;)
          val = False
      if val:    
          return val
          
      if (isValidPassword(pw)):
          print(True)    
      else:
          print(False)       
  print(isValidPassword(&quot;1234rewq&quot;))
  </code></pre>
  <p>it's returning [TypeError: str.isdigit() takes no arguments (1 given)], and im not sure why
  sorry just started learning, was referencing some of the materials i could find but, dont really know what im doing</p>