Library with common primitives for Python_ programming language
| Revision | 8610de08277c91f3fea2989bd00fd314725c0530 (tree) |
|---|---|
| Time | 2023-10-23 16:05:01 |
| Author | Sergey Gusarov <laborer2008@gmai...> |
| Commiter | Sergey Gusarov |
extra_strings: Added hasDigits()
| @@ -21,6 +21,9 @@ | ||
| 21 | 21 | def hasCyrillic(text): |
| 22 | 22 | return bool(re.search('[а-яА-ЯёЁ]', text)) |
| 23 | 23 | |
| 24 | +def hasDigits(text): | |
| 25 | + return bool(re.search('[0-9]', text)) | |
| 26 | + | |
| 24 | 27 | |
| 25 | 28 | def getUndefinedArticle(word): |
| 26 | 29 | if isVowel(word[0]): |