<jupyter_start><jupyter_text><jupyter_code>week = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}
for x in week:
  print(x)<jupyter_output>Wednesday
Monday
Tuesday
Friday
Thursday
Saturday
Sunday<jupyter_text>Example 2 (the break statement)<jupyter_code>for x in week:
  print(x)
  if x=="Thursday":
    break<jupyter_output>Wednesday
Monday
Tuesday
Friday
Thursday<jupyter_text>Example 3 (print after break)<jupyter_code>for x in week:
  if x=="Thursday":
    break
  print(x)<jupyter_output>Wednesday
Monday
Tuesday
Friday<jupyter_text>Example 4 (Looping through a string)<jupyter_code>for x in "week":
  print(x)<jupyter_output>w
e
e
k<jupyter_text>The Range() Function<jupyter_code>for x in range(6): #Example 1
  print(x)
for x in range(2,6): #Example 2
  print(x)<jupyter_output>2
3
4
5<jupyter_text>Nested Loops<jupyter_code>adjective={"red", "big", "tasty"}
fruits= {"apple", "banana", "cherry"}
for x in adjective:
  for y in fruits:
    print(x,y)<jupyter_output>red cherry
red banana
red apple
tasty cherry
tasty banana
tasty apple
big cherry
big banana
big apple<jupyter_text>2. Python While Loop<jupyter_code>i=1
while i<6:
  print(i)
  i+=1<jupyter_output>1
2
3
4
5<jupyter_text>Example 1: The break statement<jupyter_code>i=1
while i<6:
  print(i)
  if i==3:
    break
  i+=1   #Assignment operation for addition  
i=1
while i<6:
  i+=1
  if i==3:
    continue
  print(i)<jupyter_output>2
4
5
6<jupyter_text>The Else Statement<jupyter_code>i=1
while i<6:
  print(i)
  i+=1
else:
  print("i is no longer less than 6")<jupyter_output>1
2
3
4
5
i is no longer less than 6<jupyter_text>Application 1<jupyter_code>hello = {"Hello 0", "Hello 1", "Hello 2", "Hello 3", "Hello 4", "Hello 5", "Hello 6", "Hello 7", "Hello 8", "Hello 9", "Hello 10"}
for x in hello:
  print(x)

  i=0
  while i<10:
    print("Hello",i)
    i+=1<jupyter_output>Hello 8
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 4
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 6
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 5
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 3
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 1
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 7
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 2
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 9
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 0
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 10
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9<jupyter_text>Application 2<jupyter_code>i=3
while i<10:
  print(i)
  i+=1<jupyter_output>3
4
5
6
7
8
9
{'fraction_non_alphanumeric': 0.08813559322033898, 'fraction_numerical': 0.06610169491525424, 'mean_word_length': 4.424632352941177, 'pattern_counts': {'":': 3, '<': 40, '<?xml version=': 0, '>': 34, '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': '11', 'dir': 'jupyter-structured-clean-dedup', 'id': '172612', 'license': 'Apache-2.0', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1194, 'n_words': 458, 'path': 'Loop_Statement.ipynb', 'repo_name': 'Cla0001/CPEN-21A-CPE-1-1', 'size': '2950'}