<jupyter_start><jupyter_text>Loop Idioms<jupyter_code>print('Before')
for thing in [9,41,12,3,74,15]:
  print(thing)
print('After')
largest_so_far = -1
print('Before',largest_so_far)
for the_num in [9,41,12,3,74,15]:
  if the_num > largest_so_far:
    largest_so_far = the_num
  print(largest_so_far, the_num)

print('After',largest_so_far)<jupyter_output>Before -1
9 9
41 41
41 12
41 3
74 74
74 15
After 74
{'fraction_non_alphanumeric': 0.13022113022113022, 'fraction_numerical': 0.11056511056511056, 'mean_word_length': 6.555555555555555, 'pattern_counts': {'":': 0, '<': 4, '<?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': '330459', 'license': 'Apache-2.0', 'n_tokens_mistral': 210, 'n_tokens_neox': 179, 'n_words': 38, 'path': 'freeCodeCamp/pythonForEverybody/Untitled8.ipynb', 'repo_name': 'mrtyasar/PythonLearn', 'size': '407'}