Every line of 'str.iscapital() in python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
264 def capitalized(string): 265 return allcase(string[0]) + re.escape(string[1:])
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
560 def _any_case(s): 561 t = "" 562 for c in s: 563 if c in string.letters: 564 t = t + "[%s%s]" % (string.upper(c), string.lower(c)) 565 else: 566 t = t + c 567 return t