input: Write a function to generate random scores for a list of names.
  assert names_scores(['Alice', 'Bob', 'Charlie']) in [{ 'Alice': 1, 'Bob': 1, 'Charlie': 1}, {'Alice': 10, 'Bob': 10, 'Charlie': 10}]
  assert isinstance(names_scores(['David', 'Eva']), dict)
  assert all(isinstance(value, int) and 1 <= value <= 10 for value in names_scores(['Frank', 'Grace']).values())
output: import random
  
  def names_scores(names):
      return {name: random.randint(1, 10) for name in names}