<jupyter_start><jupyter_text>while Loop<jupyter_code>counter = 0 # while need a counter
while counter < 10:
    counter += 1
    print(counter)
print("counter is ", counter)
counter = 0 # while need a counter
while counter < 10:
    counter += 1
    if counter == 2:
        continue
    elif counter == 4:
        break
    print(counter)
print("counter is ", counter)
myfriends = ["Ted", "Robyn", "Barney", "Lily", "Marshall"]

i = 0 #index starts at 0
while i <= len(myfriends)-1:  #-1 because, again, the index starts at 0
    friend = myfriends[i]
    print(f"Hi {friend}, it's great to see you!")
    i += 1<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1321928460342146, 'fraction_numerical': 0.024883359253499222, 'mean_word_length': 3.410958904109589, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '353742', 'license': 'MIT', 'n_tokens_mistral': 234, 'n_tokens_neox': 214, 'n_words': 73, 'path': 'Learn Python/16. While.ipynb', 'repo_name': 'charlesjansen/Learn-Julia-Programming-Language', 'size': '643'}