input: Write a python function to generate a list of 10 random integers between 1 and 10.
  assert len(random_list()) == 10
  assert all(1 <= num <= 10 for num in random_list())
output: import random
  
  def random_list():
      return [random.randint(1, 10) for _ in range(10)]