<jupyter_start><jupyter_text>Loop Statement<jupyter_code>Week =["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
print(Week)

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>The Break Statement<jupyter_code>Week =["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
for x in Week:
  print(x)
  if x=="Thursday":
    break
Week =["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
for x in Week:
  if x=="Thursday":
    break
  print(x)<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("Example 1",x)

for x in range(2,6):
  print("Example 2",x)<jupyter_output>Example 1 0
Example 1 1
Example 1 2
Example 1 3
Example 1 4
Example 1 5
Example 2 2
Example 2 3
Example 2 4
Example 2 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 apple
red banana
red cherry
big apple
big banana
big cherry
tasty apple
tasty banana
tasty cherry<jupyter_text>While loop statement<jupyter_code>i = 1
while i<6:
  print(i)
  i+=1
i = 1
while i<6:
  print(i)
  if i==3:
    break
  i+=1  #Assignment operator for addition
i = 1
while i<6:
  i+=1
  if i==3:
    continue
  else:
    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**Create a Python program that displays Value 0 to Value 10 in sequence(vertical manner) using both for and while loop statements<jupyter_code>a=["Value"]
b=["0","1","2","3","4","5","6","7","8","9","10"]

for x in a:
  for y in b:
    print(x,y)
i=0
while i<11:
  print("Value",i)
  i+=1
#else
  #print("i is no longer greater 11")<jupyter_output>Value 0
Value 1
Value 2
Value 3
Value 4
Value 5
Value 6
Value 7
Value 8
Value 9
Value 10<jupyter_text>Application 2<jupyter_code>i=20
while i>3:
  i=i-1
  print(i)
  if i==4:
    break
#else:
   #print("i is no longer greater than 3")<jupyter_output>19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
{'fraction_non_alphanumeric': 0.14075887392900857, 'fraction_numerical': 0.04773561811505508, 'mean_word_length': 5.4526315789473685, 'pattern_counts': {'":': 3, '<': 33, '<?xml version=': 0, '>': 29, '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': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '66465', 'license': 'Apache-2.0', 'n_tokens_mistral': 1085, 'n_tokens_neox': 951, 'n_words': 277, 'path': 'Loop_Statement.ipynb', 'repo_name': 'GodfreyMamauag/CPEN-21A-CPE-1-2', 'size': '2451'}