input: Write a function to construct a bash script that can install a given software. The function should take in the software name and version as input and return the complete bash script as a string.
  
  def construct_install_script(software_name, version):
      return f"""#!/bin/bash
  
  # Download {software_name} {version}
  curl -O https://www.{software_name.lower().replace(' ', '-')}.org/ftp/{software_name.lower().replace(' ', '-')}/{version}/{software_name.replace(' ', '-')}-{version}.tgz
  
  # Extract the tgz file
  tar -xzf {software_name.replace(' ', '-')}-{version}.tgz
  
  # Move into the {software_name} directory
  cd {software_name.replace(' ', '-')}-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
  
  assert construct_install_script("Python", "3.8.5") == """#!/bin/bash
  
  # Download Python 3.8.5
  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 Python directory
  cd Python-3.8.5
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
  assert construct_install_script("PostgreSQL", "12.4") == """#!/bin/bash
  
  # Download PostgreSQL 12.4
  curl -O https://www.postgresql.org/ftp/postgresql/12.4/PostgreSQL-12.4.tgz
  
  # Extract the tgz file
  tar -xzf PostgreSQL-12.4.tgz
  
  # Move into the PostgreSQL directory
  cd PostgreSQL-12.4
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
output: def construct_install_script(software_name, version):
      return f"""#!/bin/bash
  
  # Download {software_name} {version}
  curl -O https://www.{software_name.lower().replace(' ', '-')}.org/ftp/{software_name.lower().replace(' ', '-')}/{version}/{software_name.replace(' ', '-')}-{version}.tgz
  
  # Extract the tgz file
  tar -xzf {software_name.replace(' ', '-')}-{version}.tgz
  
  # Move into the {software_name} directory
  cd {software_name.replace(' ', '-')}-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""