<jupyter_start><jupyter_text>String by Index<jupyter_code>print("Index 0: " + s[0])
print("Index 5 " + s[5])<jupyter_output>Index 0: A
Index 5 s<jupyter_text>String by Slicing 0 index system, from start to last number -> exclusive<jupyter_code>print("From 1 to 4: " + s[1:4])
print("From -4 to -1: " + s[-4:-1])<jupyter_output>From 1 to 4: nde
From -4 to -1: der<jupyter_text>If no start or end is specified, the file will go to the appropriate end<jupyter_code>print("From -5 to end: " + s[-5:])
print("From start to -1: " + s[:-1])<jupyter_output>From -5 to end: nders
From start to -1: Ander<jupyter_text>String by Stride Iterates every n as defined by Stride<jupyter_code>print("Stride val 2: " + s[::2])
print("From 1 to 5 Stride val 2: ", s[1:4:2])<jupyter_output>Stride val 2: Adr
From 1 to 5 Stride val 2:  ne<jupyter_text>If the Stride value is negative, it will iterate backwards<jupyter_code>print("Stride val -1: ", s[::-1])
print("Stride val -1 from 5 to 1: " + s[5:1:-1])
print("Stride val -2: " + s[::-2])<jupyter_output>Stride val -1:  srednA
Stride val -1 from 5 to 1: sred
Stride val -2: sen
{'fraction_non_alphanumeric': 0.15238954012623984, 'fraction_numerical': 0.046889089269612265, 'mean_word_length': 4.873015873015873, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 17, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '220268', 'license': 'MIT', 'n_tokens_mistral': 478, 'n_tokens_neox': 455, 'n_words': 144, 'path': 'exam_things/strings.ipynb', 'repo_name': 'IroniX2/python-exercises', 'size': '1109'}