title: How do I create a scoring system in Python?
body: <p>Can someone show me an example of a system where when you answer a question right it gives you one point and at the end of the quiz it gives me a total of how much I got right?</p>
  
  <p>This is the code I have so far:</p>
  
  <pre><code>def QuestionSet1():
  print("Challenge level 1 has being selected.")
  print("Can you translate these words into french?")
  a=input('Q1. Hello! :')
  if 'Bonjour' in a: 
      score = score + 1
      print('Correct!')
  elif 'bonjour'in a:
      score = score + 1
      print('Correct!')
  else:
      print('Wrong! '+'Its Bonjour')
      print('You have finished and scored', score, 'out of 10')
  </code></pre>