input: Write a python function to scrape and store data from a specified website.
  assert scrape_and_store('<website url>', 'data.csv') == True
  assert scrape_and_store('<another website url>', 'another_data.csv') == True
output: def scrape_and_store(url, filename):
      import requests
      from bs4 import BeautifulSoup
      import csv
  
      # Fetch the webpage content
      response = requests.get(url)
      if response.status_code != 200:
          return False
  
      # Parse the content with BeautifulSoup
      soup = BeautifulSoup(response.content, 'html.parser')
  
      # Extract data (example: assuming table data)
      table = soup.find('table')
      if table is None:
          return False
  
      headers = [header.text for header in table.find_all('th')]
      rows = [[cell.text for cell in row.find_all('td')] for row in table.find_all('tr')]
  
      # Write data to CSV file
      with open(filename, 'w', newline='', encoding='utf-8') as file:
          writer = csv.writer(file)
          writer.writerow(headers)
          writer.writerows(row for row in rows if row)
  
      return True