<jupyter_start><jupyter_text>String Methods Besides the primary string functions we've talked about, there are a few others you should be aware of.  isXXXX The isxxxx() methods help perform checks on strings.isalnum() checks if a string is alphanumeric<jupyter_code>s = "turtle"
s.isalnum()<jupyter_output><empty_output><jupyter_text>isalnum() checks if a string is alphabetic<jupyter_code>s.isalpha()
y = "turtle3"
y.isalpha()<jupyter_output><empty_output><jupyter_text>islower() checks if string characters are lower<jupyter_code>y.islower()<jupyter_output><empty_output><jupyter_text>isupper() for uppercase<jupyter_code>y.isupper()

"Wow".isupper()

"WOW".isupper()<jupyter_output><empty_output><jupyter_text>isspace() returns True if a string is all whitespace<jupyter_code>" ".isspace()<jupyter_output><empty_output><jupyter_text>split() and partition()<jupyter_code>"hello".partition("l")
"hello".split()
"hello".split("l")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13020833333333334, 'fraction_numerical': 0.0010416666666666667, 'mean_word_length': 10.045977011494253, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '191329', 'license': 'MIT', 'n_tokens_mistral': 354, 'n_tokens_neox': 347, 'n_words': 69, 'path': 'Functions and Methods/String Methods.ipynb', 'repo_name': 'mohsinhaider/pythonbootcampacm', 'size': '960'}