old_contents: """
  This is an example of the control structures.
  """
  
  
  result = ""
  our_number = 21
  
  
  def test_number(answer):
  
      answer = int(answer)
  
      if answer == our_number:
          return "got it right"
      elif answer > our_number:
          return "nope, lower"
      else:
          return "nope, higher"
  
  
  while result != "got it right":
      result = test_number(raw_input("Choose a number:"))
      print result
  
  
new_contents: """
  This is an example of the control structures.
  """
  
  
  if __name__ == "__main__":
  
      result = ""
      our_number = 21
  
  
      def test_number(answer):
  
          answer = int(answer)
  
          if answer == our_number:
              return "got it right"
          elif answer > our_number:
              return "nope, lower"
          else:
              return "nope, higher"
  
  
      while result != "got it right":
          result = test_number(raw_input("Choose a number:"))
          print result
  
  
subject: Put the code in __main__ for lesson 5 guess-a-number example.