input: Write a python function to scrape job listings from given URLs.
  assert len(scrape_job_listings(['https://www.indeed.com/', 'https://www.monster.com/'])) > 0
  assert isinstance(scrape_job_listings(['https://www.indeed.com/', 'https://www.monster.com/'])[0], dict)
  assert 'title' in scrape_job_listings(['https://www.indeed.com/', 'https://www.monster.com/'])[0]
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_job_listings(urls):
      job_listings = []
  
      for url in urls:
          response = requests.get(url)
          soup = BeautifulSoup(response.content, 'html.parser')
  
          if 'indeed.com' in url:
              jobs = soup.find_all('div', class_='jobsearch-SerpJobCard')
              for job in jobs:
                  title = job.find('a', class_='jobtitle').text.strip()
                  company = job.find('span', class_='company').text.strip()
                  location = job.find('div', class_='location').text.strip()
                  job_listings.append({'title': title, 'company': company, 'location': location})
          
          elif 'monster.com' in url:
              jobs = soup.find_all('section', class_='card-content')
              for job in jobs:
                  title = job.find('h2', class_='title').text.strip()
                  company = job.find('div', class_='company').text.strip()
                  location = job.find('div', class_='location').text.strip()
                  job_listings.append({'title': title, 'company': company, 'location': location})
  
      return job_listings