<jupyter_start><jupyter_text>Loops and Iterators  The while loop<jupyter_code>i = 0
while i < 5:
    print(i, end = ' ')
    i += 1<jupyter_output>0 1 2 3 4<jupyter_text>while expression:    statements    modify loop control variable<jupyter_code>## For Loop<jupyter_output><empty_output><jupyter_text>for iterator_variable in collection:    statements<jupyter_code>a = [1, 2, 4, 6]

for i in a:
    print(i, end = ' ')<jupyter_output>1 2 4 6<jupyter_text>The Range Function The range function has two arguments - first and last value, the first value is 0 by defaultlast value is not included in range<jupyter_code>for x in range(5):
    print(x, end = ' ')
for x in range(1, 4):
    print(x, end = ' ')<jupyter_output>1 2 3<jupyter_text>Break and Continue statements<jupyter_code>for x in range(10):
    if x == 5:
        break
    print(x, end = ' ')
for x in range(10):
    if x == 5:
        continue
    print(x, end = ' ')<jupyter_output>0 1 2 3 4 6 7 8 9
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.03946002076843198, 'mean_word_length': 3.7960199004975124, 'pattern_counts': {'":': 0, '<': 18, '<?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': '158447', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 391, 'n_tokens_neox': 360, 'n_words': 115, 'path': 'Day01/Notebooks/1. Basic Programming Constructs/4. Iteration.ipynb', 'repo_name': 'Quantumaibd/3Days-Machine-Learning-Workshop', 'size': '963'}