[Solved] Using returned outputs from one function in another in Python


I would rewrite the main function to be something like:

def GetStudentInput():
  score = 0
  for i in range (4):
      print("Mrs Pearson's Class Test Score Data")
      name = CheckStringInput("What's Your Name: ")
      score += CheckNumericInput("What's Your Score: ")
  print(score)

This eliminates the need for an extra function and avoids using a list since you don’t appear to need the individual values elsewhere — only the sum total.

1

solved Using returned outputs from one function in another in Python