input: Write a function that constructs a Bash script to install a given software package. The function should take the name of the software and its version as input and return a string containing the Bash script. If the input is empty, the function should return an empty string.
  
  
  def construct_install_script(software_name, version):
      if not software_name or not version:
          return ""
      return f"""#!/bin/bash
  
  # Download the specified version of the software
  curl -O https://www.python.org/ftp/python/{version}/{software_name}-{version}.tgz
  
  # Extract the tgz file
  tar -xzf {software_name}-{version}.tgz
  
  # Move into the software directory
  cd {software_name}-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install
  """
  
  assert construct_install_script("Python", "3.8.5") == """#!/bin/bash
  
  # Download the specified version of the software
  curl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
  
  # Extract the tgz file
  tar -xzf Python-3.8.5.tgz
  
  # Move into the software directory
  cd Python-3.8.5
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install
  """
  assert construct_install_script("Python", "") == ""
  assert construct_install_script("", "3.8.5") == ""
  assert construct_install_script("", "") == ""
  
output: def construct_install_script(software_name, version):
      if not software_name or not version:
          return ""
      return f"""#!/bin/bash
  
  # Download the specified version of the software
  curl -O https://www.python.org/ftp/python/{version}/{software_name}-{version}.tgz
  
  # Extract the tgz file
  tar -xzf {software_name}-{version}.tgz
  
  # Move into the software directory
  cd {software_name}-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install
  """