Check if the text has any letters in it
(text)
| 2200 | |
| 2201 | |
| 2202 | def has_any_letters(text): |
| 2203 | """Check if the text has any letters in it""" |
| 2204 | # result = re.search("[A-Za-z]", text) # works only with english letters |
| 2205 | result = any( |
| 2206 | c.isalpha() for c in text |
| 2207 | ) # works with any letters - english or non-english |
| 2208 | |
| 2209 | return result |
| 2210 | |
| 2211 | |
| 2212 | def save_account_progress(browser, username, logger): |