input: Write a python function to scrape and parse data from a given URL, extracting 'name' and 'value' pairs from list items.
  assert scrape_data('http://example.com/') == [{'name': 'Name', 'value': 'John Smith'}, {'name': 'Age', 'value': '38'}]
  assert scrape_data('http://anotherexample.com/') == [{'name': 'Color', 'value': 'Blue'}, {'name': 'Size', 'value': 'Large'}]
  assert scrape_data('http://yetanotherexample.com/') == [{'name': 'City', 'value': 'New York'}, {'name': 'Country', 'value': 'USA'}]
output: def scrape_data(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      result = []
      list_items = soup.find_all('li')
      
      for item in list_items:
          name_tag = item.find('span', class_='name')
          value_tag = item.find('span', class_='value')
          
          if name_tag and value_tag:
              name = name_tag.get_text(strip=True)
              value = value_tag.get_text(strip=True)
              result.append({'name': name, 'value': value})
      
      return result