title: Python: TypeError: unsupported operand type(s) for +: 'int' and 'function'. Difficulty manipulating returned variable?
body: <p>I'm just learning to code and I'm working on a personal project to supplement my classwork - a quiz that'll also help me memorize my German vocabulary. Right now I'm having difficulty figuring out how to make this thing grade itself. Here's the code I'm trying to modify:</p>
  
  <pre><code>def dialogue (question,response,score):
      if question == response:
          print ("Correct! ")
          score = 1
      else:
          print ("Correct answer: " + response)
          score = 0
      return score
  
  score = dialogue
  currentScore = 0
  currentScore = currentScore + score
  question = raw_input ("Good morning ")
  response = ("guten morgen")
  dialogue(question,response,score)
  print currentScore
  </code></pre>
  
  <p>My full error is as follows:</p>
  
  <pre><code>Traceback (most recent call last):
     File "C:/Users/Burgess/Desktop/COLLEGE FOLDER/scoreMod.py", line 12, in &lt;module&gt;
     currentScore = currentScore + score
     **TypeError: unsupported operand type(s) for +: 'int' and 'function'**
  </code></pre>
  
  <p>All this nonsense about defining the score is getting a little lengthy. I may look at setting that up to operate as a module as well. I also want to try and convert it to give a % value feedback, but I imagine I can handle those issues on my own. Right now, I'd rather fix this problem before I complicate the code.</p>
  
  <p>Anybody out there that might be able to help me figure this out? I've been lurking on the forums, and I did find one other issue with a similar title, but I don't think our problems have a similar resolution.</p>