<jupyter_start><jupyter_text><jupyter_code>print(" Semestral Grade in 2nd sem")
w_pregr, w_migr, w_figr = 0.3, 0.3, 0.4
print(" The weight of your semestral grades are: \
    \n\t{:.2%} for Prelims\
    \n\t{:.2%} for Midterms, and\
    \n\t{:.2%} for Finals.".format(w_pregr, w_migr, w_figr))

name = input(" Enter name ")
course = input(" Enter Course: ")
try:
  pregr = int(input(" Enter Prelim Grade: "))
  if pregr < 0 or pregr > 100:
    raise ValueError
  migr = int(input(" Enter Midterm Grade: "))
  if migr < 0 or migr > 100:
    raise ValueError
  figr = int(input(" Enter Finals Grade: "))
  if figr < 0 or figr > 100:
    raise ValueError
  
  sem_grade = (pregr * w_pregr) + (migr * w_migr) + (figr * w_figr)

  if sem_grade > 70:
    emoji = "\U0001F600"
  elif sem_grade == 70:
    emoji = "\U0001F606"
  else:
    emoji = "\U0001F62D"

  print("Hello {}, your semestral grade is: {:.2f}    {}".format(name, sem_grade, emoji))
except ValueError:
  print("Please input a valid grade value.")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14807872539831302, 'fraction_numerical': 0.044048734770384255, 'mean_word_length': 2.9555555555555557, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, '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': '161007', 'license': 'Apache-2.0', 'n_tokens_mistral': 460, 'n_tokens_neox': 418, 'n_words': 117, 'path': 'Week 1/LinAlg_58051_Gonzales_Python_Basics_1.ipynb', 'repo_name': 'diecilyngonzales/Lab-Activities-for-Linear-Algebra-58051', 'size': '1067'}