daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> def hasNumbers(inputString):
  2. ...     return any(char.isdigit() for char in inputString)
  3.    
  4. >>> def hasChar(inputString):
  5. ...     return any(char.isalpha() for char in inputString)
  6.    
  7. if(hasNumbers("Charlie123") and hasChar("Charlie123"))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top