title: Code having a value error
body: <p>I need help with my code that keeps giving me this error.
  The error is:</p>
  
  <p><code>ValueError: too many values to unpack (expected 2)
  </code></p>
  
  <p>The line that gave me the error is this line:</p>
  
  <p><code>question , answer = generateQuestions (maxNum)</code></p>
  
  <p>I can't figure out how to fix it. Below is my code :</p>
  
  <pre><code> import random
  
      def generateQuestions ( maxNum ) :
        ops = ['+','-']
        var1 = random.randrange ( maxNum ) 
        var2 = random.randrange ( maxNum )
        maxNum += 1
        operation = random.choice (ops)
        ques = 'What is' + str(var1) + operation + str(var2) + '?'
        if operation == '+' :
          var1 + var2
        else :
          var1 - var2
        return ques
  
      difficulty = 0 
      lives = 0
      numofquestion = 0
      correctCount = 0
      while int (difficulty) &lt;= int (0) or int(difficulty) &gt;= int(4) :
          print ('Welcome to the Math Tester')
          print ('Please choose your difficulty')
          difficulty = int (input ( '"1" for Easy \n"2" for Medium \n"3" for Hard\n'))
  
          if difficulty == 1 :
              print ('Easy Selected, You Have 3 Lives')
              lives , maxNum = 3,10
  
          elif difficulty == 2 :
              print ('Medium Selected, You Have 2 Lives')
              lives , maxNum = 2,25
  
          elif difficulty == 3 :
              print ('Hard Selected, You Have 1 Life')
              lives , maxNum = 1,50
          for numofquestion in range (10) :
  
              print ( 'Question', numofquestion + 1, 'of 10,',lives ,'lives remaining.')
              question , answer = generateQuestions (maxNum)
  
              print ( question)
              userAns = int (input ())
  
              if answer == userAns :
                  print ('Correct!')
                  correctCount += 1
  
              else :
                  print ('Incorrect!')
                  lives -= 1
  
  
          print ('Result :')
          print ('You scored {} / 10.'.format (correctCount))
          print ('{} % - You {}!' .format (( correctCount / 10)*100, 'pass' if correctCount &gt; 4 else 'fail'))
  </code></pre>