input: Write a python function to identify the differences between JavaScript and Python from a given text.
  assert identify_differences("JavaScript is primarily a client-side scripting language, while Python is predominantly a server-side scripting language.")==["JavaScript is primarily a client-side scripting language", "Python is predominantly a server-side scripting language"]
  assert identify_differences("JavaScript can be used to create dynamic webpages with interactive content, while Python is optimized to work with packages and modules.")==["JavaScript can be used to create dynamic webpages with interactive content", "Python is optimized to work with packages and modules"]
  assert identify_differences("JavaScript is a loosely typed language and allows for variables to have different data types, whereas Python is a strongly typed language and variables have to be given a specific data type.")==["JavaScript is a loosely typed language and allows for variables to have different data types", "Python is a strongly typed language and variables have to be given a specific data type"]
output: def identify_differences(text):
      if 'JavaScript' in text and 'Python' in text and 'while' in text:
          return text.split('while')
      elif 'JavaScript' in text and 'Python' in text and 'whereas' in text:
          return text.split('whereas')
      return []