<jupyter_start><jupyter_text>Final Exam  Problem Statement 1Create a Python program that will produce an output of sum of 10 numbers less than 5 using FOR LOOP statement.<jupyter_code>sum=0
num=[4,3,2,1,0,-1,-2,-3,-4,-5]
for x in num:
  print(x)
  sum+=x
  print("The sum of 10 numbers less than 5 is",sum)<jupyter_output>4
3
2
1
0
-1
-2
-3
-4
-5
The sum of 10 numbers less than 5 is  -5<jupyter_text>Problem Statement 2 Create a Python program that will produce accept five numbers and determine the sum of first and last number among the five numbers entered using WHILE LOOP<jupyter_code>l=1
while l<=5:
  print(l)
  l+=1
n=1,2,3,4,5
print("The sum of first and last digit is",1+5)<jupyter_output>1
2
3
4
5
The sum of first and last digit is 6<jupyter_text>Problem Statement 3Create a Python program to calculate student grades. It accepts a numerical grade as input and it will display the character grade as output based on the given scale: (Use Nested-IF-Else statement)<jupyter_code>grade= float(input("Enter your grade:"))
if grade>=90:
  print("A")
elif grade>=80 and grade<=89:
  print("B")
elif grade>=70 and grade<=79:
  print("C")
elif grade>=60 and grade <=69:
  print("D")
else: 
  print ("F")<jupyter_output>Enter your grade:20
F
{'fraction_non_alphanumeric': 0.10281124497991968, 'fraction_numerical': 0.05301204819277108, 'mean_word_length': 4.822429906542056, 'pattern_counts': {'":': 0, '<': 14, '<?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': '474341', 'license': 'Apache-2.0', 'n_tokens_mistral': 460, 'n_tokens_neox': 431, 'n_words': 176, 'path': 'Final_Exam.ipynb', 'repo_name': 'JUNTILLA-QUEENETHERESEJULIA/CPEN-21A-ECE-2-3', 'size': '1245'}