<jupyter_start><jupyter_text>For Loop Statement<jupyter_code>week=["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
for x in week:
  print(x)<jupyter_output>Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday<jupyter_text>Break Statement<jupyter_code>week=["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
for x in week:
  print(x)
  if x=="Thursday":
    break #Display Thursday
week=["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
for x in week:
  if x=="Thursday":
    break
  print(x) #not display Thursday<jupyter_output>Sunday
Monday
Tuesday
Wednesday<jupyter_text>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):
  print(x)
for x in range(2,6):
  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)
3<jupyter_output>red apple
red banana
red cherry
big apple
big banana
big cherry
tasty apple
tasty banana
tasty cherry<jupyter_text>While Loop<jupyter_code>i=1
while i<6:
  print(i)
  i+=1<jupyter_output>1
2
3
4
5<jupyter_text>Break Statement<jupyter_code>i=1
while i<6:
  print(i)
  if i == 3:
    break
  i+=1 #Assignment operator for addition<jupyter_output>1
2
3<jupyter_text>Continue Statement<jupyter_code>i=1
while i<6:
  i+=1
  if i==3:
    continue
  print(i)

i=0
while i<6:
  i+=1
  if i==3:
    continue
  print(i)<jupyter_output>1
2
4
5
6<jupyter_text>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>for x in range(11):
  print("Hello", x)<jupyter_output>Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
Hello 6
Hello 7
Hello 8
Hello 9
Hello 10<jupyter_text>Application 2 Python program that displays integers less than 10 but not less than 3<jupyter_code>i=1
while i<10:
  i+=1
  if i<3:
    continue
  print(i)<jupyter_output>3
4
5
6
7
8
9
10
{'fraction_non_alphanumeric': 0.12517385257301808, 'fraction_numerical': 0.03662494204914233, 'mean_word_length': 5.660493827160494, 'pattern_counts': {'":': 3, '<': 41, '<?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': '259088', 'license': 'Apache-2.0', 'n_tokens_mistral': 977, 'n_tokens_neox': 886, 'n_words': 239, 'path': 'Loop_Statement.ipynb', 'repo_name': 'RNkun/CPEN-21A-CPE1-1-1', 'size': '2157'}