daily pastebin goal
93%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 54 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
Top