<jupyter_start><jupyter_text>Searching & Reversing a List--- Finding a Targetted Value```.index(target, start, end)``` method will find the first occurance of the target if it exists.- If the target does not exist, it raises and error- Both ```start``` and ```end``` arguments are __optional__    - They act like slicing mechanism, we can look for the index of a value within such boundaries<jupyter_code># .index() example

a_list = ['apple', 'oranges', 'kiwi', 'honeydew', 'apple']

print("a_list.index('oranges'):", a_list.index('oranges'))
print("a_list.index('kiwi', 1, 5):", a_list.index('kiwi', 1, 5))<jupyter_output>a_list.index('oranges'): 1
a_list.index('kiwi', 1, 5): 2<jupyter_text>Counting the Number of Occurrence of a Target```.count(target)``` method counts the number of times target occurs.- If target does not exist, returns 0<jupyter_code># .count() example

a_list = ['apple', 'oranges', 'kiwi', 'honeydew', 'apple']

print("a_list.index('oranges'):", a_list.count('oranges'))
print("a_list.index('apple'):", a_list.count('apple'))
print("a_list.index('strawberry'):", a_list.count('strawberry'))<jupyter_output>a_list.index('oranges'): 1
a_list.index('apple'): 2
a_list.index('strawberry'): 0<jupyter_text>Mutate and Reverse a list```.reverse()``` will reverse the order of the items in the list<jupyter_code># .reverse() example

a_list = ['apple', 'oranges', 'kiwi', 'honeydew', 'apple']
a_list.reverse()

print('a_list is now:', a_list)<jupyter_output>a_list is now: ['apple', 'honeydew', 'kiwi', 'oranges', 'apple']
{'fraction_non_alphanumeric': 0.1810512654120701, 'fraction_numerical': 0.007787151200519144, 'mean_word_length': 6.8274111675126905, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '146889', 'license': 'MIT', 'n_tokens_mistral': 558, 'n_tokens_neox': 539, 'n_words': 152, 'path': '.ipynb_checkpoints/05 Searching and Reversing-checkpoint.ipynb', 'repo_name': 'mrparkonline/python3_list', 'size': '1541'}