input: Write a function to install a given software version using Bash script. If the script is executed successfully, it should return True, otherwise False. If the given version is empty, then return False.
  assert install_software("Python 3.8.5")==True
  assert install_software("Java 8")==True
  assert install_software("")==False
  assert install_software("Unknown Software 1.0")==False
  assert install_software("Python 3.9.0")==True
output: def install_software(version):
      if not version:
          return False
      try:
          if "Python" in version:
              subprocess.run(["bash", "-c", f"sudo apt-get install python{version.split()[1]} -y"], check=True)
          elif "Java" in version:
              subprocess.run(["bash", "-c", f"sudo apt-get install openjdk-{version.split()[1]}-jdk -y"], check=True)
          else:
              return False
          return True
      except subprocess.CalledProcessError:
          return False