input: Write a function called generate_random_list that generates and returns a list of 10 random numbers between 1 and 100. If the list length is not 10, raise a ValueError.
  assert generate_random_list() != generate_random_list()  # Ensure randomness
  assert len(generate_random_list()) == 10
  try:
      generate_random_list()  # Should not raise an error
  except ValueError:
      assert False  # Should not reach here
output: import random
  
  def generate_random_list():
      random_list = random.sample(range(1, 101), 10)
      if len(random_list) != 10:
          raise ValueError
      return random_list