<jupyter_start><jupyter_text>Problem Statement 1<jupyter_code>sum = 0
for x in [-5,-4,-3,-2,-1,0,1,2,3,4]:
    sum = sum + x

print(sum)<jupyter_output>-5<jupyter_text>Problem Statement 2<jupyter_code>i=0
u=[]

while i<5:
  i+=1
  iu=int(input("Enter a number:"))
  u.append(iu)
  um=u[0]+u[-1]
print("Entered Numbers:", u)
print(um)<jupyter_output>Enter a number:12
Enter a number:1
Enter a number:4
Enter a number:7
Enter a number:8
Entered Numbers: [12, 1, 4, 7, 8]
20<jupyter_text>Problem Statement 3<jupyter_code>grade = int(input("Enter the grade:"))

if grade>=90:
  print("A")
else:
  if grade>=80:
    print("B")
  else:
    if grade>=70:
      print("C")
    else:
      if grade>=60:
        print("D")
      else:
        print("F")<jupyter_output>Enter the grade:80
B
{'fraction_non_alphanumeric': 0.1717948717948718, 'fraction_numerical': 0.05641025641025641, 'mean_word_length': 4.104575163398692, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '276641', 'license': 'Apache-2.0', 'n_tokens_mistral': 358, 'n_tokens_neox': 332, 'n_words': 74, 'path': 'Final_Exam.ipynb', 'repo_name': 'arrabelasanchez/CPEN-21-ECE2-2', 'size': '780'}