I have this function that is supposed to count points but it doesn\'t add them:
def Correct(totalPoints): print \"Correct\" totalPoints = totalPoints+1
totalPoint must be declared as a global variable
and make the refernece in the function so python can update that value and not creating a new variable
def Correct(totalPoints): global totalPoints print "Correct" totalPoints = totalPoints+1 print "You have", totalPoints,"points"