input: Write a function to generate sample data for a web application using Python's faker library. The function should return a list of dictionaries, each containing three key-value pairs: name, email, and age. The age should be a random integer between 18 and 60.
  from faker import Faker
  
  def generate_sample_data(n=10):
      fake = Faker()
      data = []
      for _ in range(n):
          entry = {
              'name': fake.name(),
              'email': fake.email(),
              'age': fake.random_int(min=18, max=60)
          }
          data.append(entry)
      return data
  
  assert generate_sample_data()[0]['name']!=''
  assert generate_sample_data()[0]['email'].endswith('@example.com')
  assert 18 <= generate_sample_data()[0]['age'] <= 60
output: from faker import Faker
  
  def generate_sample_data(n=10):
      fake = Faker()
      data = []
      for _ in range(n):
          entry = {
              'name': fake.name(),
              'email': fake.email(),
              'age': fake.random_int(min=18, max=60)
          }
          data.append(entry)
      return data