def main(): quizOne=input("What is the score on the first quiz? ") quizTwo=input("What is the score on the second quiz? ") quizThree=input("What is the score on the third quiz? ") quizFour=input("What is the score on the fourth quiz? ") total=addFourQuizzes(quizOne, quizTwo, quizThree, quizFour) print "The four quizzes add up to ",total homeworkOne=input("What is the score on the first homework? ") homeworkTwo=input("What is the score on the second homework? ") homeworkThree=input("What is the score on the third homework? ") homeworkFour=input("What is the score on the fourth homework? ") total=getHomeworkAvg(homeworkOne, homeworkTwo, homeworkThree, homeworkFour) print "The homework average is ",total testOne=input("What is the score on the first test? ") testTwo=input("What is the score on the second test? ") total=addTwoTests(testOne, testTwo) print "The sum of the two tests is ",total quizSum=quizSum homeworkAvg=homeworkAvg testSum=testSum total=gradeTotal(quizSum, homeworkAvg, testSum) def addFourQuizzes(quiz1, quiz2, quiz3, quiz4): quizSum=quiz1+quiz2+quiz3+quiz4 return quizSum def getHomeworkAvg(homework1, homework2, homework3, homework4): homeworkAvg=(homework1+homework2+homework3+homework4)/4 return homeworkAvg def addTwoTests(test1, test2): testSum=test1+test2 return testSum def gradeTotal(): gradeTotal=quizSum1+homeworkAvg1+testSum1 return gradeTotal main()

I am getting the error message saying global name quizSum1 is not defined. Any help is appreciated, I just need pointed in the right direction.