title: I got stuck on this exercise can't figure the True/False part
body: <p>I got some homework to do and I got stuck with this code. I have no idea how to continue.
  This is what I'm suppose to do:</p>
  
  <blockquote>
    <ol>
    <li><code>generate_sequence</code> - Will generate a list of random numbers between 1 to 101. The list
    length will be difficulty.</li>
    <li><code>get_list_from_user</code> - Will return a list of numbers prompted from the user. The list length
    will be in the size of difficulty.</li>
    <li><code>is_list_equal</code> - A function to compare two lists if they are equal. The function will return
    True / False.</li>
    <li><code>play</code> - Will call the functions above and play the game. Will return True / False if the user
    lost or won.</li>
    </ol>
  </blockquote>
  
  <p>(Sorry for copy/pasting. My English is not so good.)</p>
  
  <pre><code>import random
  
  difficulty = 101
  secret_number = 6
  
  def generate_number():
      global secret_number
      secret_number = random.randint(0, difficulty)
  
  def get_guess_from_user():
      return input( "Please choose number between 1 to " + str(difficulty))
  
  def compare_results(userInput):
      isSame = False
      if(secret_number == userInput):
          isSame = True
  
      return isSame
  
  def play():
      generate_number()
      userInput = get_guess_from_user()
      isSame = compare_results(userInput)
      print("number generated is: " + str(secret_number))
      print(isSame)
  
  play()
  </code></pre>