<jupyter_start><jupyter_text>Final Exam<jupyter_code>#Problem Statement 1
#Create a Python program that will produce an output of sum of 10 numbers less than 5 using FOR LOOP statement (30 points)
  
sum=0
for num in range(-5,5):
  sum = sum + num
print("List of 10 numbers:", list(range(-5,5)))
print("The sum of ten numbers less than five is" , sum,'.')
#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 (35 points)


list1=[]
while len(list1) <5:
  user_input = int(input("Enter the number:"))
  list1.append(user_input)

print("List 1:", list1)
print(list1[0] + list1[-1])
#Problem Statement 3
#Create 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) (35 points)  

grade = int(input("Enter your grade:"))
if grade >=0 and grade <=100:
  if grade >90:
    print("A") 
  elif grade in range (80,90):
    print("B")
  elif grade in range (70,80):
    print("C")
  elif grade in range (60,70):
    print("D")
  elif grade <60:
    print("F")
else:
  print("Invalid entry!")<jupyter_output>Enter your grade:100
A
{'fraction_non_alphanumeric': 0.11137071651090343, 'fraction_numerical': 0.040498442367601244, 'mean_word_length': 4.399159663865547, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '111328', 'license': 'Apache-2.0', 'n_tokens_mistral': 431, 'n_tokens_neox': 399, 'n_words': 175, 'path': 'Final_Exam.ipynb', 'repo_name': 'JustineKateAlbero/CPEN-21A-CPE-1-1', 'size': '1284'}