input: Write a python function to extract product names and prices from a given URL and return them as a list of tuples.
  assert extract_products("https://www.example.com/products") == [("Product1", "$10"), ("Product2", "$20")]
  assert extract_products("https://www.example.com/anotherpage") == [("AnotherProduct1", "$15"), ("AnotherProduct2", "$25")]
  assert extract_products("https://www.example.com/noproducts") == []
output: def extract_products(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
  
      products = []
      product_elements = soup.select('.product')  # Assuming each product is within an element with class "product"
      
      for product in product_elements:
          name = product.select_one('.product-name').text.strip()  # Assuming product name is within an element with class "product-name"
          price = product.select_one('.product-price').text.strip()  # Assuming product price is within an element with class "product-price"
          products.append((name, price))
      
      return products