input: Write a python function to fetch data from an API and save it to a SQLite database.
  assert isinstance(fetch_and_save_data("http://example.com/api"), None)
  assert isinstance(fetch_and_save_data("https://jsonplaceholder.typicode.com/todos/1"), None)
  assert isinstance(fetch_and_save_data("https://jsonplaceholder.typicode.com/posts/1"), None)
output: import requests
  import sqlite3
  
  def fetch_and_save_data(url):
      # Fetch data from the API
      response = requests.get(url)
      data = response.json()
  
      # Connect to SQLite database (or create it if it doesn't exist)
      conn = sqlite3.connect('api_data.db')
      cursor = conn.cursor()
  
      # Create a table if it doesn't exist
      cursor.execute('''
          CREATE TABLE IF NOT EXISTS api_data (
              id INTEGER PRIMARY KEY AUTOINCREMENT,
              url TEXT,
              data TEXT
          )
      ''')
  
      # Insert the fetched data into the table
      cursor.execute('''
          INSERT INTO api_data (url, data)
          VALUES (?, ?)
      ''', (url, str(data)))
  
      # Commit the transaction and close the connection
      conn.commit()
      conn.close()